plsql - Update new column with value from one column -


i 2 columns in table , need update third column value column combinations below:

   columna  columnb  newcolumn       1        2         1           2        1         1          3        4         3        4        3         3    

i thing need this.

update your_table set column3 = least(column1,column2); 

Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -