asfman
android developer
posts - 90,  comments - 213,  trackbacks - 0
<%@ Language="Javascript" %>
<%
Catalog = new ActiveXObject("AdoX.Catalog");
Catalog.Create("Provider=Microsoft.Jet.Oledb.4.0;Data Source="+Server.MapPath("test.mdb"));
Catalog.ActiveConnection.Execute("create table asfman(id counter, name varchar(100), message text(100), char2 char(100), _time time, n number,beizhu memo)");
Response.Write("create table successfully");
%>
posted on 2007-07-25 17:05 汪杰 阅读(442) 评论(1)  编辑 收藏 引用 所属分类: sql access

FeedBack:
# re: create table
2007-07-25 17:05 | 汪杰
<script language="javascript" runat="Server">
var catalog = new ActiveXObject("AdoX.Catalog");
catalog.Create("provider=Microsoft.Jet.OleDb.4.0;Data source=C:\\test.mdb");
catalog.ActiveConnection.Execute("create table asfman(id counter, test text, name char, num number, itime time, imemo memo, istring varchar(100))");
//id 自动编号 number 数字 time 日期时间 memo备注
//Long 数字[长整型]Short 数字[整型]Single 数字[单精度]Double 数字[双精度]Currency 货币字符串的话
//字符串使用varchar,后面可以带括号来表示长度 text 备注 text(50)文本大小50 char 文本255
//var table = new ActiveXObject("AdoX.Table")
//table.Name = "asfman";
//table.Columns.Append("test", 202, 0);//0表示默认大小202表示varchar201表示text203表示text备注204表示binary
//catalog.Tables.Append(table)
</script>
  回复  更多评论
  
只有注册用户登录后才能发表评论。

<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿(15)

随笔分类(1)

随笔档案(90)

文章分类(727)

文章档案(712)

相册

收藏夹

http://blog.csdn.net/prodigynonsense

友情链接

最新随笔

搜索

  •  

积分与排名

  • 积分 - 457935
  • 排名 - 6

最新随笔

最新评论

阅读排行榜

评论排行榜