plsql鎖表解鎖 怎樣查詢出SQLSERVER被鎖的表,以鎖表的SQL語句?
怎樣查詢出SQLSERVER被鎖的表,以鎖表的SQL語句?查看被鎖表:select request_session_id spid,OBJECT_NAME(resource_associated_
怎樣查詢出SQLSERVER被鎖的表,以鎖表的SQL語句?
查看被鎖表:select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName from sys.dm_tran_locks where resource_type="OBJECT" spid 鎖表進(jìn)程 tableName 被鎖表名
PLSQL查看建表語句的方法?
1、打開PLSQL,并進(jìn)行登錄;
2、創(chuàng)建測試表,
create table test_create(id number, value varchar2(50))
3、右擊表,點(diǎn)擊‘查看’選項(xiàng);
4、彈出窗口中,點(diǎn)擊‘查看SQL’;
5、即可查看到建表語句;
-- Create table
create table TEST_CREATE
(
id NUMBER,
value VARCHAR2(50)
)
tablespace USERS
pctfree 10
initrans 1
maxtrans 255