SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
CREATE TABLE t ( weight varchar(32), time_from varchar(32), nullable int ); insert into t values ('100г', 'С 10 утра', null), ('200 г', 'С 11 утра', null), ('300гр', 'С 10 утра', null), ('400 гр', 'С 11 утра', null), ('500г.', 'С 11 утра', null); SELECT * FROM t; update t set time_from = LOWER(time_from), nullable = COALESCE(nullable, 1) ; SELECT * FROM t;
Stuck with a problem? Got Error? Ask ChatGPT!
Copy Clear