sql - how can we delete one value out of two values from table? -


is possible this?i have table 2 rows , 1 column.both rows have same value.no primary key there.can delete 1 row?

here's 1 way row_number() , common table expression:

with cte (   select *,      row_number() on (partition id order id) rn    yourtable) delete cte rn = 1; 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -