如何在access数据库 表中插入一个新的字段?
如何在access数据库 表中插入一个新的字段?
类型为是/否
http://hi.baidu.com/ku_tong/blog/item/393fbe3469eece49241f146a.html
参考上面的
SQL语句能用的 就是类型不知道 false true 类型好像不能写boolean
VBScript code:
<%
set cat = CreateObject("ADOX.Catalog")
cat.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\AA.mdb;"
Set tbl = cat.Tables("tbl2")
tbl.Columns.Append "新字段", 11
Set cat.ActiveConnection = Nothing
Set cat = Nothing
Set tbl = Nothing
%>
http://www.hydx2.com
相关问答:
我有一个Units表,结构为:
ID UnistsName
UN1 黑龙江东方学院
UN2   ......
项目需要创建程序集,并对该程序集设置EXTERNAL_ACCESS权限,以完成外部访问功能,比如采用如下语句:
create assembly assemblyName(程序集名称) from 'D:\dllName.dll' with permission_set = external ......
m_pConnect->BeginTrans();
strSql.Format("CREATE TABLE SysUser(lsh AUTOINCREMENT NOT NULL UNIQUE,PRIMARY KEY(lsh),userType BYTE)");
m_pConnect->Execute((_bstr_t)strSql,NULL, adExe ......
sql语句:
SELECT top 12 Forum.ID,Forum.topic,Reforum.id,Reforum.username,Reforum.posttime,Reforum.postip,Forum.username from Forum INNER JOIN Reforum ON Forum.ID = Reforum.topicid wher ......