简体   繁体   English

PowerBuilder插入语法错误

[英]PowerBuilder Insert Syntax Error

I have a huge problem with a PowerBuilder coded application. 我对PowerBuilder编码的应用程序有很大的疑问。 It's occuring in all DataWindows. 它发生在所有DataWindows中。 When the control builds it's SQL Syntax for UPDATE/INSERT it's missing the "'" around the datetime fields. 控件生成时,它是用于UPDATE / INSERT的SQL语法,它在日期时间字段周围缺少“'”。 That generates a SQL Syntax error. 生成一个SQL语法错误。

Example

INSERT .... date=12/12/2001 00:00:00 ..

CORRECT 正确

INSERT.... date='12/12/2001 00:00:00'

What can i do? 我能做什么?

Try this : 尝试这个 :

  1. Check in your database profile setup if you have a wrong datetime format (Tools\\Database Profile), Tab 'Syntax' 检查您的数据库配置文件设置是否有错误的日期时间格式(“工具\\数据库配置文件”),在“语法”选项卡中
  2. What kind of DB are you using ? 您正在使用哪种数据库? (SQLServer, Oracle, ...) ? (SQLServer,Oracle等)? If you are using SNC Native , try to change the provide to another option and try again. 如果您使用的是SNC Native,请尝试将提供更改为另一个选项,然后重试。

Regards. 问候。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM