zoukankan
html css js c++ java
有用的数据SQL脚本(做数据字典比较有用哦)
select
[
name
]
from
[
sysdatabases
]
order
by
[
name
]
查询一个数据库中的所有表
select
[
id
]
,
[
name
]
from
[
sysobjects
]
where
[
type
]
=
'
u
'
and
status
>
0
都知道
[
type
]
=
'
u
'
是用户表,
[
type
]
=
'
s
'
是系统表吧。
根据上个语句的查询结果然后再
查询一个表中的所有字段(我尝试不用
[
ID
]
,而用
[
name
]
去查,结果报错了)
select
[
name
]
from
[
syscolumns
]
where
[
id
]
=
1931153925
查询表结构
SELECT
table_name,column_name,column_default,
is_nullable,data_type,character_maximum_length
FROM
INFORMATION_SCHEMA.COLUMNS
SELECT
table_name
as
'
表名
'
,column_name
as
'
列名
'
,data_type
as
'
类型
'
,
character_maximum_length
as
'
长度
'
,column_default
as
'
默认值
'
,is_nullable
as
'
是否为空
'
FROM
INFORMATION_SCHEMA.COLUMNS
where
table_name
in
(
select
name
from
sysobjects
where
xtype
=
'
u
'
and
status
>
0
)
order
by
table_name
将孤立的用户名关联
sp_change_users_login
'
report
'
sp_change_users_login
'
update_one
'
,
'
OAS
'
,
'
OAS
'
sp_change_users_login
'
Auto_Fix
'
,
'
test
'
,
NULL
,
'
testpassword
'
查看全文
相关阅读:
Please check logcat output for more details
如何移植freertos
依赖: nginx-common (= 1.14.0-0ubuntu1) 但是它将不会被安装
错误:22 http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu bionic Release 404 Not Found [IP: 91.189.95.83 80]
由于没有公钥,无法验证下列签名:
jQuery的TAB切换+定时器
CSS问题1:div中 li宽度不固定 ie6和ie7不兼容不自动换行
(转)Sqlite中INTEGER PRIMARY KEY AUTOINCREMENT和rowid的使用
(转)JS加载顺序
(转)在网页中JS函数自动执行常用三种方法
原文地址:https://www.cnblogs.com/ringwang/p/1230916.html
最新文章
斜折对称方阵
EL对表单数据的访问
Java编程——虚线与实线
求n个整数的最大公约数
旋转数阵
HTML5和CSS3里有哪些新东西?
Spring MVC 学习笔记
一个大而全的Java通用开发框架
我的项目经历
重拾ionic
热门文章
提高写作和说话技能
SpringMVC的forward和redirect
创业的确很难
技术人员要学会分享
Hello World
stm32 硬件错误
为何串口dma发送数据可能不完整
串口乱码
联想y720 淋了雨,字体变得模糊了
干货---stm32f103之DMA双缓冲__也算我为网络贡献的微薄之力
Copyright © 2011-2022 走看看