随笔分类 - SqlServer
摘要:View Code --查询所有数据库use masterselect * from sysdatabases where dbid>4;--系统自带的数据库分别是master->1,model->3,msdb->4,tempdb->2--查询数据库中所有数据库(存储过程)exec sp_helpdb;--查询指定数据库中的表use masterselect * from sysobjects where xtype='u' ;if object_id('#test1') is not nulldrop table #test1go
阅读全文
摘要:sql server有两个转义符: ' 默认情况下, '是字符串的边界符, 如果在字符串中包含', 则必须使用两个', 第1个'就是转义符 <
浙公网安备 33010602011771号