摘要: 用一张表的数据更新另一张表的数据 阅读全文
posted @ 2021-06-07 14:16 张艳兵 阅读(408) 评论(0) 推荐(0) 编辑
摘要: alter table 需要建立外键的表 with check/nocheck add constraint 外键名字 foreign key (需要建立外键的字段名) references 外键表(外键字段)。 其中的with check /nocheck 的作用: 指定表中的数据是否用新添加的或 阅读全文
posted @ 2019-12-10 15:00 张艳兵 阅读(1174) 评论(0) 推荐(0) 编辑
摘要: mssql数据库的主键约束中,主键名查询: 修改主键名称的方法: 阅读全文
posted @ 2019-11-18 16:49 张艳兵 阅读(590) 评论(0) 推荐(0) 编辑
摘要: 我们平常在用DIV CSS制作Xhtml网页页面时,常会用到class 和id来选择调用CSS样式属性。 CLASS与ID基本属性及用法: Class 在程序中称“类”,同时在CSS中也书面语也叫“类”。 在CSS样式中以小写的“点”及“.”来命名如: .css5{属性:属性值;} ,而在html页 阅读全文
posted @ 2018-12-24 10:10 张艳兵 阅读(1812) 评论(0) 推荐(0) 编辑
摘要: 一、SQL中的语法 1、drop table 表名称 eg: drop table dbo.Sys_Test 2、truncate table 表名称 eg: truncate table dbo.Sys_Test 3、delete from 表名称 where 列名称 = 值 eg: delete 阅读全文
posted @ 2018-10-16 17:14 张艳兵 阅读(375) 评论(0) 推荐(0) 编辑
摘要: sql语句从一张表中查询数据插入到另一张表中的方法如下:1、select * into destTbl from srcTbl。2、insert into destTbl(fld1, fld2) select fld1, 5 from srcTbl。 3、右键目标数据库,选择数据导入。 以上两句都是 阅读全文
posted @ 2018-09-11 15:06 张艳兵 阅读(317) 评论(0) 推荐(0) 编辑