1.FASTLOAD的语句
DELETE FROM SYSADMIN.FASTLOG WHERE TABLENAME = 'PGCI_T_WARN_TSK_OPIN20190403' AND DATABASENAME = 'STG_DATA' AND USERID = USER;
使用UNIQUE PRIMARY INDEX ( TableName ,DatabaseName ,UserId );删数只锁记录。执行计划如下:
2.DSQL的语句
DEL FROM SYSADMIN.FastLog WHERE TableName = 'PG_T_ONECAS_WARN_TSK20190403' AND DatabaseName='STG_DATA';
使用的TableName ,DatabaseName,删数会锁全表。