有時需要根據索引名稱,找到該索引所屬的表。
select a.name as tabname
,h.name as idname
from sys.objects as a
right join sys.indexes as h on a.object_id=h.object_id
where a.type<>'s' AND (h.name LIKE '%Width%' OR h.name LIKE '%Height%' )
有時需要根據索引名稱,找到該索引所屬的表。
select a.name as tabname
,h.name as idname
from sys.objects as a
right join sys.indexes as h on a.object_id=h.object_id
where a.type<>'s' AND (h.name LIKE '%Width%' OR h.name LIKE '%Height%' )
1. 通過 pymssql 連接 首先創建連接 import pymssql conn = pymssql.connect(host='xxx.xxx.xxx.xxx', user=