Search
 
SCRIPT & CODE EXAMPLE
 

SQL

update if else mysql

UPDATE prices
SET final_price= CASE
   WHEN currency=1 THEN 0.81*final_price
   ELSE final_price
END
Comment

if mysql update

mysql> update updateIfConditionDemo set UserAge =if(UserAge =23,26,UserAge);
Query OK, 4 rows affected (0.20 sec)
Rows matched: 5 Changed: 4 Warnings: 0
Comment

PREVIOUS NEXT
Code Example
Sql :: psql: FATAL: Ident authentication failed for user "postgres" 
Sql :: list foreign data tables postgres psql 
Sql :: query concatenate 
Sql :: display index in sql 
Sql :: grant all priviledges to mysql user 
Sql :: pl sql asynchronous procedure calls 
Sql :: upper and lower in oracle sql 
Sql :: wsl install mysql 
Sql :: sql server cannot create database diagram 
Sql :: sql auto date 
Sql :: oracle current date minus 1 day 
Sql :: mysql parse int 
Sql :: create table with select 
Sql :: mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password] 
Sql :: hotw to alter lengh character vayng postgres 
Sql :: update with join sql server 
Sql :: select amount weeks between two dates mysql 
Sql :: ORA-00903: invalid table name 
Sql :: show data in table postgres 
Sql :: nosql databases list 
Sql :: oracle all source 
Sql :: sql not null 
Sql :: what is the default password for sql server sa 
Sql :: psql change table schema 
Sql :: Add SuperUser MySQL 
Sql :: get server date mysql 
Sql :: remove duplicates sql server select 
Sql :: select last 2 characters sql 
Sql :: sql count null 
Sql :: inner join sql oracle 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =