A
A
Alexander Vishnev2018-09-13 04:51:21
PostgreSQL
Alexander Vishnev, 2018-09-13 04:51:21

How to remove rows from a table if their value is less than 10000?

Tried such request: the request is fulfilled, and lines are not deleted.
DELETE FROM "pos" WHERE num = '<10000'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-09-13
@fromdns

Maybe still ? UPD. If you have postgres, not mysql (by the way - what do you have? What motivates the simultaneous presence of these two tags?) - then you will probably need to do type conversion, something like this: . DELETE FROM pos WHERE num < 10000
num::integer < 10000

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question