Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # cari data yg kolom mengandung huruf
- SELECT * FROM <nama tabel> WHERE <nama kolom> REGEXP '[[:alpha:]]+';
- # mendapatkan tanggal 1 bulan yang lalu
- SELECT DATE_SUB(NOW(), INTERVAL 1 MONTH);
- # ubah collation dari field
- ALTER TABLE <nama tabel> MODIFY <nama kolom> CHAR(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement