SQL Server
文章平均质量分 73
菜鸟_栾懿
这个作者很懒,什么都没留下…
展开
-
SQL Server 子父级类别表(笔记)
USE [master]GOIF EXISTS(SELECT * FROM sysdatabases WHERE name='Temp') DROP DATABASE TempGOCREATE DATABASE Temp ON( NAME='Temp', FILENAME='D:\Temp.mdf')GOUSE [Temp]GOIF EXISTS(SELECT * FRO转载 2013-10-01 15:44:59 · 1390 阅读 · 0 评论 -
SQL语句显示表结构
select 字段名=a.name,序号=a.colorder,主键=case when exists(select 1 from sysobjects where xtype='pk' and name in ( select name from sysindexes where indid in ( select indid from sysindexkeys where i转载 2013-10-26 19:50:11 · 1687 阅读 · 0 评论