随笔分类 - 数据库技术
摘要:update t_operationset t_operation.isrestrictionenabled = '1'from t_operation a,t_operation bwhere a.opid = b.opid and a.opno = (select convert(int,opno)-5 from t_operation c where c.opname = '回火' and ...
阅读全文
摘要:解决方法: 1.建立与孤立用户同名的登陆用户(密码随便),改变对象的属主 sp_changeobjectowner [ @objname =] 'object' , [ @newowner = ] 'owner' 如: use authors exec sp_changeobjectowner 'authors', 'dbo'; GO 缺点:当需要修改的数据库对象很多时,麻烦!! 2.sp_...
阅读全文
摘要:某知名IT公司上机测试题(我刚参加的)有MAIN和SUB两个表,字段如下MAINA VARCHAR(36) PRIMARY KEY NOT NULL (为什么是varchar? 不理解)B VARCHAR(36) NOT NULLC CHAR(1) NULLABLERSUBD VARCHAR(36) PRIMARY KEY NOT NULLA VARCHAR(36) FOREIGN KEY NOT...
阅读全文

浙公网安备 33010602011771号