随笔分类 -  数据库技术

摘要: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 ... 阅读全文
posted @ 2008-11-11 19:27 晓岚 阅读(395) 评论(0) 推荐(0)
摘要:解决方法: 1.建立与孤立用户同名的登陆用户(密码随便),改变对象的属主 sp_changeobjectowner [ @objname =] 'object' , [ @newowner = ] 'owner' 如: use authors exec sp_changeobjectowner 'authors', 'dbo'; GO 缺点:当需要修改的数据库对象很多时,麻烦!! 2.sp_... 阅读全文
posted @ 2007-02-08 14:23 晓岚 阅读(665) 评论(0) 推荐(0)
摘要:所遇见的MySQL问题解决过程 阅读全文
posted @ 2006-12-15 16:54 晓岚 阅读(1301) 评论(1) 推荐(0)
摘要:某知名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... 阅读全文
posted @ 2006-08-21 15:44 晓岚 阅读(1108) 评论(4) 推荐(0)