The tabela_A
has a id
field with auto increment. I need to clear the table with something similar to the command truncate
only cleaning only the registry from 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 look something like:
TRUNCATE table WHERE id >=30
And return
id col1
1 A
3 B
4 C
5 D