我将以下数据存储在字符串中;并且,我希望在c++中使用sql命令发送此内容。insert into Names values ( name );更多信息,我从standart input中获取数据
cin >> name mysql_query ( ...,?如果我写成“Insert...( name ) ",name将被视为字符串而不是变量名。
php include 'DB.php'; $dbs =mysql_select_db($databaseName, $con);
// Assigns a new random number with no duplicates to database$updaterownum = mysql_query("SET @ro
OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n' IGNORE 1 ROWS (`type_o`,`n_order`,`n_return`);You have an error in your SQL syntax; check the manual thatcorresponds to your MySQL serve