0
To tabela_A
has a field id
auto increment. I need to clear the table with something similar to the command truncate
only that cleaning only the record from the id = x
.
For example:
id col1
1 A
3 B
4 C
5 D
30 E
32 F
33 G
34 H
The expected result would be something like:
TRUNCATE table WHERE id >=30
And return
id col1
1 A
3 B
4 C
5 D
There’s something to stop you from doing it: DELETE FROM table WHERE id >= 30?
– Daniel Santos
Doing this, the column
id
continue auto incrementing with values>= 30
– Marcelo de Andrade