Empty a database table


/ Published in: Bash
Save to your folder(s)

A bash command to empty a database table.


Copy this code and paste it in your HTML
  1. #!/bin/bash
  2. mysql -D $DATABASE -e 'TRUNCATE TABLENAME;'

URL: http://www.modserv.com.eg

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.