我将insert的函数封装在一个类中,函数为MemInsert(insertsql:string);
现在要调用它插入当前日期,不包括时间
var
temp:tdatetime;
temp:=date();
insertsql:='insert into member(startdate) values(temp)';
MemInsert(insertsql);
错误:此处不能插入列名,只能是变量,常量或表达式大概意思是这样的,像这类的insert怎么写?
现在要调用它插入当前日期,不包括时间
var
temp:tdatetime;
temp:=date();
insertsql:='insert into member(startdate) values(temp)';
MemInsert(insertsql);
错误:此处不能插入列名,只能是变量,常量或表达式大概意思是这样的,像这类的insert怎么写?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货