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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -