怎么用sql语句插入一条纪录(20分)

L

llk

Unregistered / Unconfirmed
GUEST, unregistred user!
怎么用sql语句插入一条纪录
连库都会,就是不会插
表名:table1
字段名:name,sex,age
数据:大周,男,20
 
insert into table1 values ('大周','男','20')
 
insert into table1 select '大周','男',20
或 insert into table1(name,sex,age) values('大周','男',20)

with query do
begin
close;
SQL.Clear;
SQL.add(insert into table1 select '+''''+'大周'+''''+','+''''+'男'+''''+',20');
ExecSQL;
end;
 
多人接受答案了。
 
顶部