首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

delphi中Query连接数据库总显示 no SQL statement avialable解决办法

2012-03-01 
delphi中Query连接数据库总显示 no SQL statement avialabledelphi中Query连接数据库总显示noSQLstatement

delphi中Query连接数据库总显示 no SQL statement avialable
delphi中Query连接数据库总显示   no   SQL   statement   avialable

[解决办法]
Query组件sql属性没有付值或者付了非选择Sql语句
例如
Query1.sql.text := 'select * from 表 ';//这是正确的
Query1.sql.text := 'update 表 set a = b ';//这是错误的
Query1.sql.text := 'delete 表 ';//这也是错误的

热点排行