Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Other Scripting Languages (http://www.programmingforums.org/forum39.html)
-   -   mysql - truncate command (http://www.programmingforums.org/showthread.php?t=13749)

programmingnoob Aug 11th, 2007 3:21 AM

mysql - truncate command
 
what does it do?
I thought it deleted all the entries from the tables while preserving the column structure, right?

well... when i type truncate tablename;
and then i try to see the data of the set, it says "empty set", which I would expect....
but when I am using with c#, it would tell me the entry already exists....so how can an empty set have an entry?
maybe I am doing something wrong with c#, but i doubt it!

sykkn Aug 12th, 2007 2:38 PM

Try running mysqladmin flush-tables.

programmingnoob Aug 12th, 2007 6:20 PM

Quote:

Originally Posted by sykkn (Post 132087)
Try running mysqladmin flush-tables.

does that preserve the structure of the tables? columns and all?


All times are GMT -5. The time now is 9:17 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC