• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 684
  • Last Modified:

Truncate table

Does anyone have an idea why this is not working? It used to on another project I did but it won't delete anything now!

mysql_query("TRUNCATE sizes");
0
jonofat
Asked:
jonofat
1 Solution
 
Om PrakashCommented:
this should work:
mysql_query('TRUNCATE TABLE table;');
0
 
jonofatAuthor Commented:
Legend.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now