access的sql语句怎么这么难?
把程序改成access的之后,竟然出现了N多问题,非常着急,麻烦大家帮忙看一下。2007年最后一个工作日了,祝大家新年快乐先~~~
1、查询里面可以执行,程序里面却不可以,报错:至少一个参数没有被指定(在paramcheck设置为是时报“参数b.Isused没有默认值”):
select a.*,b.ItemContent,b.IsUsed from item a left join (select * from Bargaincontent where Bargainid=1) b on a.itemNO = b.itemNo where a.templateid =1 order by a.ItemNO
程序:with ADOQueryLoadTree do
begin
Close;
SQL.Clear;
上面语句
SQL.Add(szSQL);
Open;
end;
2、排序:
id ItemNO
1 1.4.6.4
1 1.4.6.5
1 10
1 11
1 2
1 2.1
1 2.1.1
想实现10、11排到2,2.1等的后面
3、事务+多条sql语句
insert into table1;
insert into table1;
在网上查的,后面加;加#13等都试过了,还是不行,到底是个什么样的格式?