Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

T-SQL Never ending DELETE

set rowcount 10000
while 1=1
    begin
      DELETE FROM customers WHERE cust_num LIKE '%8009______'
      IF @@rowcount = 0
          BREAK
      ELSE
          CHECKPOINT
    end
Source by www.databasejournal.com #
 
PREVIOUS NEXT
Tagged: #Never #DELETE
ADD COMMENT
Topic
Name
6+6 =