Posted By

ModServ on 01/23/12


Tagged

database table Shell Bash empty


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

ModServ


Empty a database table


 / Published in: Bash
 

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

A bash command to empty a database table.

  1. #!/bin/bash
  2. mysql -D $DATABASE -e 'TRUNCATE TABLENAME;'

Report this snippet  

You need to login to post a comment.