私はFMにデータを挿入しようとしていますが、解析エラーが検索された数のfourmsがうまくいきません。エラー [HY000] [DataDirect][ODBC SequeLink ドライバー][ODBC ソケット][DataDirect][ODBC FileMaker ドライバー][FileMaker]SQL の解析エラー
enter code here
StringBuilder sbAddBarcode = new StringBuilder(); sbAddBarcode.Append("バーコードに挿入 (PONumber,Description,Model,[シリアル番号])"); sbAddBarcode.Append("値"); sbAddBarcode.Append(" ("+ バーコード.PONumber + ","); sbAddBarcode.Append(" '" + バーコード.説明 +"',"); sbAddBarcode.Append(" '" + バーコード.モデル番号 +"') "); //sbAddBarcode.Append(" '" + バーコード.シリアル番号 +"')");
fmCommand = new OdbcCommand(sbAddBarcode.ToString(), fmcon);
fmCommand.CommandType = CommandType.Text;
fmCommand.Connection = fmcon;
try
{
fmcon.Open();
fmCommand.ExecuteNonQuery();
}
catch (OdbcException oe)
{
throw new Exception(oe.Message);
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
finally
{
fmcon.Close();
}