|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Hi,
is there a command for mysql just to wipe out all the data from a table, i dont want to delete the table! I just need to restart the table without setting up the fields and stuff again |
|
#2
|
|||
|
|||
|
delete from tablename;
since no where clause is included it deletes all records HTH Rod |
|
#3
|
|||
|
|||
|
Note also that when you use the syntax:
delete from tableName; It will reply that zero rows were affected....MySQL just says that to improve performance. If you want to see exactly how many records were deleted use this query: delete from tableName where 1=1; |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > wipe out a table |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|