I can not confirm this, but it would make sense that this was updated in
4.05. After all, you are only deleting your records, not re-building the
table. The new functionality you describe is also present in SQL Server and
Oracle.
Filter: Mysql , sql , query
Good Luck,
Dennis Salguero
----- Original Message -----
From: "Gordon" <gordon@stripped>
To: <mysql@stripped>
Sent: Monday, December 23, 2002 3:21 PM
Subject: DELETE with no WHERE clause
> DID DELETE FROM XXX with no where clause stop acting like truncate in
> 4.0.5?
>
> In 3.23.51 and earlier versions of 4.0.x
>
> mysql> delete from product_order_main;
> GIVES THIS
> Query OK, 0 rows affected (0.10 sec)
>
> AND RESETS THE AUTOINCREMENT VALUE
>
> mysql> insert into product_order_main values
> (null,'rcl1','hh','ab','pending','yes','20021223',now());
> Query OK, 1 row affected (0.10 sec)
>
> mysql> select * from product_order_main;
> +---------+---------+---------+---------+-------------+-------------+---
> -------------+---------------------+
> | ordr_ID | cpny_ID | prod_ID | acct_ID | pord_Status | pord_Active |
> pord_Timestamp | pord_Create |
> +---------+---------+---------+---------+-------------+-------------+---
> -------------+---------------------+
> | 1 | rcl1 | hh | ab | Pending | Yes |
> 20021223000000 | 2002-12-23 11:14:18 |
> +---------+---------+---------+---------+-------------+-------------+---
> -------------+---------------------+
> 1 row in set (0.10 sec)
>
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> USING 4.0.5 I GET
>
> mysql> delete from product_order_main;
> Query OK, 1 row affected (0.00 sec)
>
> mysql> insert into product_order_main values
> (null,'rcl1','hh','ab','pending','yes','20021223',now());
> Query OK, 1 row affected (0.00 sec)
>
> mysql> select * from product_order_main;
> +---------+---------+---------+---------+-------------+-------------+---
> -------------+---------------------+
> | ordr_ID | cpny_ID | prod_ID | acct_ID | pord_Status | pord_Active |
> pord_Timestamp | pord_Create |
> +---------+---------+---------+---------+-------------+-------------+---
> -------------+---------------------+
> | 225 | rcl1 | hh | ab | Pending | Yes |
> 20021223000000 | 2002-12-23 11:19:10 |
> +---------+---------+---------+---------+-------------+-------------+---
> -------------+---------------------+
> 1 row in set (0.00 sec)
>
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail <mysql-thread128331@stripped>
> To unsubscribe, e-mail
<mysql-unsubscribe-dennis=beridney.com@stripped>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>
| Thread |
|---|
| • Can MySQL handle 120 million records? | B.G. Mahesh | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Jeremy Zawodny | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Qunfeng Dong | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Jeremy Zawodny | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Michael She | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Michael T. Babcock | 18 Dec |
| • RE: Can MySQL handle 120 million records? | Adam Nelson | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Jeremy Zawodny | 18 Dec |
| • RE: Can MySQL handle 120 million records? | Joe Stump | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Michael T. Babcock | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Gerald Jensen | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Aaron Clausen | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Michael T. Babcock | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Paul DuBois | 18 Dec |
| • Database type question | Richard E. Perlotto II | 19 Dec |
| • Re: Database type question | Iikka Meriläinen | 19 Dec |
| • Re[2]: Can MySQL handle 120 million records? | Dyego Souza do Carmo | 19 Dec |
| • RE: Can MySQL handle 120 million records? | Wayne Lewis | 18 Dec |
| • Excluding records? | Eric Anderson | 19 Dec |
| • Re: Excluding records? | Adolfo Bello | 20 Dec |
| • Re: Re[2]: Can MySQL handle 120 million records? | Harald Fuchs | 19 Dec |
| • Re: Re[2]: Can MySQL handle 120 million records? | Paul DuBois | 19 Dec |
| • Re: Re[2]: Can MySQL handle 120 million records? | Paul DuBois | 19 Dec |
| • Re: Can MySQL handle 120 million records? | Muruganandam | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Jeremy Zawodny | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Michael She | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Jeremy Zawodny | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Michael She | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Michael T. Babcock | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Michael She | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Michael T. Babcock | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Jeremy Zawodny | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Michael Bacarella | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Michael T. Babcock | 18 Dec |
| • RE: Can MySQL handle 120 million records? | Joe Stump | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Michael T. Babcock | 18 Dec |
| • Can I build a web page to extract data? | Gary Hostetler | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Csongor Fagyal | 19 Dec |
| • Re: Can MySQL handle 120 million records? | Michael She | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Jocelyn Fournier | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Jocelyn Fournier | 18 Dec |
| • Re: Can MySQL handle 120 million records? | W. D. | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Jocelyn Fournier | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Csongor Fagyal | 18 Dec |
| • Re: Can MySQL handle 120 million records? | W. D. | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Csongor Fagyal | 18 Dec |
| • Re: Can MySQL handle 120 million records? | B.G. Mahesh | 18 Dec |
| • Re: Can MySQL handle 120 million records? | David T-G | 18 Dec |
| • RE: Can MySQL handle 120 million records? | JamesD | 18 Dec |
| • Re: Can MySQL handle 120 million records? | David T-G | 18 Dec |
| • RE: Can MySQL handle 120 million records? | Peter Vertes | 18 Dec |
| • RE: Can MySQL handle 120 million records? - Impressive! How do you guys do that? | Qunfeng Dong | 18 Dec |
| • Re: Can MySQL handle 120 million records? - Impressive! How doyou guys do that? | R. Hannes Niedner | 18 Dec |
| • Re: Can MySQL handle 120 million records? - Impressive! How do youguys do that? | Michael T. Babcock | 18 Dec |
| • Re: Can MySQL handle 120 million records? - Ok, If you guys really can handle tens of millions records, you have to help me to enjoy MySQL too :-) | Qunfeng Dong | 18 Dec |
| • Re: Can MySQL handle 120 million records? - Ok, If you guys really can handle tens of millions records, you have to help me to enjoy MySQL too :-) | Qunfeng Dong | 18 Dec |
| • Re: Can MySQL handle 120 million records? - Ok, If you guys really can handle tens of millions records, you have to help me to enjoy MySQL too :-) | Jocelyn Fournier | 19 Dec |
| • Thanks! Re: Can MySQL handle 120 million records? - Ok, If you guys really can handle tens of millions records, you have to help me to enjoy MySQL too... | Qunfeng Dong | 20 Dec |
| • Re: Can MySQL handle 120 million records? - Ok, If you guys really can handle tens of millions records, you have to help me to enjoy MySQL too :-) | Ryan Fox | 19 Dec |
| • Re: Can MySQL handle 120 million records? - Ok, If you guys really can handle tens of millions records, you have to help me to enjoy MySQL too :-) | Brent Baisley | 19 Dec |
| • RE: Can MySQL handle 120 million records? | JamesD | 19 Dec |
| • Re: Can MySQL handle 120 million records? | Jeremy Zawodny | 21 Dec |
| • Re: Can MySQL handle 120 million records? | Michael She | 21 Dec |
| • Re: Can MySQL handle 120 million records? | Michael T. Babcock | 23 Dec |
| • Re: Can MySQL handle 120 million records? | Michael She | 21 Dec |
| • RE: Can MySQL handle 120 million records? | JamesD | 21 Dec |
| • Re: Can MySQL handle 120 million records? | Jeremy Zawodny | 22 Dec |
| • Re: Can MySQL handle 120 million records? | Michael T. Babcock | 23 Dec |
| • Re: Can MySQL handle 120 million records? | Jeremy Zawodny | 23 Dec |
| • DELETE with no WHERE clause | Gordon | 23 Dec |
| • Re: DELETE with no WHERE clause | Dennis Salguero | 24 Dec |
| • re: DELETE with no WHERE clause | Victoria Reznichenko | 24 Dec |
| • RE: Can MySQL handle 120 million records? | JamesD | 21 Dec |
| • RE: Can MySQL handle 120 million records? | Dean Harding | 21 Dec |
| • RE: Can MySQL handle 120 million records? | JamesD | 21 Dec |
| • RE: Can MySQL handle 120 million records? | David Brodbeck | 18 Dec |
| • RE: Can MySQL handle 120 million records? | Greg_Cope | 18 Dec |
| • Re: Can MySQL handle 120 million records? | Paul DuBois | 18 Dec |
| • RE: Can MySQL handle 120 million records? | RBRoa | 19 Dec |
| • RE: Can MySQL handle 120 million records? | Dana Diederich | 19 Dec |
| • RE: Can MySQL handle 120 million records? | John Griffin | 19 Dec |
| • Re: Excluding records? | King_Henree@yahoo.com | 20 Dec |