string a,b,c,d,e,ls_title
a=trim(sle_a.text) //获取商店名称
b=trim(sle_b.text) //获取消费金额
c="你在"
d="消费了"
e="元"
ls_title= c + a + d + b + c
数据库表名称: test
数据表字段:
id int
title char
date datetime
求组合字符串和变量赋值正确的写法,还有插入数据库的语句该怎么写?
------解决方案--------------------
date ld_today
ld_today=today()
insert into test (id,title,date) values(1,:ls_title,:ld_today); //date是关键字,可能要加"[]"
if sqlca.sqlcode=-1 then
messagebox('',sqlca.sqlerrtext)
else
commit;
end if