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 锁表进程 tableName 被锁表名
PLSQL查看建表语句的方法?
1、打开PLSQL,并进行登录;
2、创建测试表,
create table test_create(id number, value varchar2(50))
3、右击表,点击‘查看’选项;
4、弹出窗口中,点击‘查看SQL’;
5、即可查看到建表语句;
-- Create table
create table TEST_CREATE
(
id NUMBER,
value VARCHAR2(50)
)
tablespace USERS
pctfree 10
initrans 1
maxtrans 255