c# - Incorrect syntax near '=' -


i've written script reasons it's gave me errors , dont understand why

this have :

   conn.open();     int maxrow = int32.parse(cmd.executescalar().tostring());      ssql = "select * p_mkzgood";     if (flag == true)     {         ssql += "where iscommend = 1";     }     cmd.commandtext = ssql;     sqldatareader reader = cmd.executereader();      arraylist ginfos = new arraylist();     goodsinfo ginfo;      (int = 0; < maxrow; i++)     {         if (reader.read())         {             ginfo = new goodsinfo(); 

error =

[sqlexception (0x80131904): incorrect syntax near '='.]

    int maxrow = int32.parse(cmd.executescalar().tostring()); 

what wrong in part? thanks!

fixed , guys , how stupid feel error ;)

your sql string needs space between p_mkzgood , where.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -