[TYPO3-dev] How standard compliant is "truncate"?

Peter Kuehn [wmdb] peter.kuehn at wmdb.de
Thu Feb 5 12:51:58 CET 2009


Martin Kutschker schrieb:

> We could add a simple wrapper in t3lib_db.

exec_TRUNCATEquery($table) that checks
  if running on mysql
   use "truncate"
   else "delete from without where"
?

id love to have that one - would even be cool for cli-importers and 
stuff where i frequently have to clear tmp-tables.
gRTz
pekue




More information about the TYPO3-dev mailing list