Acces中利用ADOQuery创建表使用Create Table语句,如何定义数据类型?

Carfield 2002-02-19 05:24:10
Access中利用ADOQuery创建表使用Create Table语句,如何定义数据类型?
Access各数据类型对应的标志是什么?
...全文
71 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
大漠苍狼123 2002-02-25
  • 打赏
  • 举报
回复
例子:
with CreateTablequery do
begin
close;
sql.Clear ;
sql.Add('Create Table gcdj_ls(xh char(4) null,demc char(50) null,debh char(50) null,dedw char(10) null,glmc char(20) null,dw char(4) null,sl char(4) null,dj char(10) null,fj char(10) null)');
execsql;
end;
大漠苍狼123 2002-02-25
  • 打赏
  • 举报
回复
例子:
with CreateTablequery do
begin
close;
sql.Clear ;
sql.Add('Create Table gcdj_ls(xh char(4) null,demc char(50) null,debh char(50) null,dedw char(10) null,glmc char(20) null,dw char(4) null,sl char(4) null,dj char(10) null,fj char(10) null)');
execsql;
end;

大漠苍狼123 2002-02-25
  • 打赏
  • 举报
回复
例子:
with CreateTablequery do
begin
close;
sql.Clear ;
sql.Add('Create Table tablename(field1 char(4),field2 int )');
execsql;
end;
Carfield 2002-02-20
  • 打赏
  • 举报
回复
怎么没有人回答!敬请各位高手帮帮忙!!!
Carfield 2002-02-19
  • 打赏
  • 举报
回复
请帮帮忙!!!

5,386

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧