今晚一定要完成!!!(40分)

  • 主题发起人 主题发起人 zhouaiping
  • 开始时间 开始时间
Z

zhouaiping

Unregistered / Unconfirmed
GUEST, unregistred user!
我已查询出内容在stringgrid中,现想把它建临时表并打印出来
create table #temptabel(aaa int)
用了,在table那出错,是不是要定义,具体怎么用?
 
create table temptabel(aaa int)
 
把你Demo贴出来
 
SELECT * into 临时表名 FROM 表名 where 条件
查询结果存入临时表
 
看了你所有的贴,Access我没用过,mlzhou说了
 
我所有的数据都在stringgrid中,每次查询结果数据都不同,我只想把stringgrid中打出而不
问它的源数据,现在不知怎么创临时表又怎么向它传stringgrid中数据.
 
你到底要完成什么功能[:D][red]请明示[/red]
 
还听不明?
我想将stringgrid中内容生成临时表,再通过报表打印
 
建临时表用 create table temptabel(aaa int) 就可以了
 
在query中?
 
with query1 do
begin
close;
sql.clear;
sql.text:='create table temptabel(aaa int) ';
execsql;
end;
 
然后用with tabel do ..向它写数据?
 
如果Access不能Create Table就不能用临时表
 
with tabel do
begin
filedbyname('').asinteger:=.....
end;
 
acess2000 支持临时是表 生成语句 SELECT * into 临时表名 FROM 表名 where 条件
用Create Table 是建表sql语句
 
我还有一个不明那就是with table do 中那个table 是什么是要放一个table控件吗?
 
不一定了看你了不用table 就用query一样,不过
with query do
begin
close;
sql.clear;
sql.text:='insert into temptabel (aaa) VALUES (12345 ) ';
execsql;
end;
 
是这样,那我把表创建好了之后,关掉程序它会自动消失吗?
 
刚才发错了想错了也写错了
with tabel do
begin
filedbyname('').asinteger:=.....
end;
 
不会消失
要用
drop Table temptabel 删除
 
后退
顶部