当字段名与保留字相同时,应用[] 加以区分,否则会出现Microsoft JET Database Engine 错误 '80040e14' INSERT INTO 语句的语法错误。
Example:
Insert into Userlog (UserName,[Password],TransDate,TransIP) Values(‘”&UserName&”’,’”&Password&”’,Now(),’”&TransIP&”’)

附 SQL Server的保留关键字
http://www.gaoso.com/Article/database/SQL/200501/12691.html

 

相关文章:

  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-09-02
猜你喜欢
  • 2021-06-16
  • 2022-12-23
  • 2021-07-05
  • 2021-09-13
  • 2022-03-05
相关资源
相似解决方案