在线数据库管理工具(db007) v1.5(35)
echo "创建表:<br>"
echo "CREATE TABLE [表名] (<br>"
echo "[test1] int not null identity,<br>"
echo "[test2] binary not null,<br>"
echo "primary key ([test1]))<br><br>"
echo "设置主键:ALTER TABLE [tablename] ADD PRIMARY KEY ([fieldname])<br><br>"
echo "查询:select * from tablename where fieldname *** order by id desc<br><br>"
echo "更新:update tanlename set fieldname = values,cn_name='values' where ID = 1<br><br>"
echo "添加:insert into tanlename (fieldnam,fieldnam2)values (1,'values')<br><br>"
echo "删除:delete from tanlename where fieldname = values<br><br>"
echo "删除表:DROP TABLE 数据表名称<br><br>"
echo "添加字段:ALTER TABLE [表名] ADD [字段名] NVARCHAR (50) NULL<br><br>"
echo "删除字段:alter table [tablename] drop [fieldname]<br><br>"
echo "修改字段:ALTER TABLE [表名] ALTER COLUMN [字段名] 类型(大小) NULL<br><br>"
echo "新建约束:ALTER TABLE [表名] ADD CONSTRAINT 约束名 CHECK ([约束字段] <= '2000-1-1')<br><br>"
echo "删除约束:ALTER TABLE [表名] DROP CONSTRAINT 约束名<br><br>"
echo "新建默认值:ALTER TABLE [表名] ADD CONSTRAINT 默认值名 DEFAULT '51WINDOWS.NET' FOR [字段名]<br><br>"
echo "删除默认值:ALTER TABLE [表名] DROP CONSTRAINT 默认值名<br><br>"
end sub
%>
<!--程序界面主表格开始-->
<table width="100%" height="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<td width="18%" valign="top">
<div id="Layer1" style="overflow-x:auto;overflow-y:auto; width:100%;height:100%;">
<div style="width:140px;height:0px;overflow:hidden;"></div>
内容版权声明:除非注明,否则皆为本站原创文章。