Wednesday, 16 January 2013

clear down all records from table

use <databasename>
truncate table <tablename>

2 comments:

  1. If I'm not wrong this will work in case table doesn't have FK's.

    ReplyDelete
  2. you are right, I used above where I was using table outside of crm and I knew no FKs were involved :)

    ReplyDelete