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
Post a Comment