![]() |
MySQL question regarding truncating tables.
Can you Truncate a table with a WHERE clause, and remove only elements which match a certain criteria? Or is TRUNCATE simply used to wipe the entire table?
|
truncate wipes entire table, you want delete.
DELETE FROM `tablename` WHERE foo = 'bar' |
Quote:
|
stay away from mysql if you dont know the difference between del and truncate
|
Quote:
|
NoSQL FTW!!!
|
All times are GMT -7. The time now is 06:37 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123