Home > Net > Why can't the SQL statements to the database?
Why can't the SQL statements to the database?
Time:10-07
Is a time when I put the paper import database because the topic is a SQL statement and then have a single program at abnormal, is this why? Can you help me solve? Thank you!
CodePudding user response:
Don't put all the code, afraid we copy?
CodePudding user response:
He say there are grammatical errors near,,,, sure there is something wrong with the SQL statement, Such as single quotes
CodePudding user response:
Parentheses may be Chinese, may be the whole Angle of the problem of single quotes, Don't tangle you this statement, try the parameterized queries to insert records,
CodePudding user response:
Because in the SQL statement 'quotes' special semantic,
The best solution is to "parameterized queries, you can refer to send out an invitation card # buildings of 38 examples and explanation for single quotation marks, https://bbs.csdn.net/topics/393068375 (staff to the database table to insert data when testing staff code, name any repeat, and repeat remind?)
CodePudding user response:
The problem of the SQL statement. Insert into table name Values (data)