优衣美的牛仔裙档次:pb+mysql 语句问题

来源:百度文库 编辑:高校问答 时间:2024/04/24 17:48:34
我在pb中写了如下一条语句:(数据库为mysql4)
datetime ldt_date
select now() into :ldt_date from sys_var;
sys_var是我在mysql中新建的一个有一条记录表。可是
运行报如下错误:
sqlstate=37000
[MySQL][ODBC 3.51 Driver][mysqld-4.0.18-nt]You have an error in your SQL syntax.
Check the manual that corresponds to your MySQL server version for the right syntax
to use near '() From sys_var' at line 1。
我试过,如果是select 字段 into :变量 from table就没问题,想now(),count(*)都会报如上错误,请高手指点。

into :ldt_date from sys_var