when: 1개의 글

1. 테스트할 테이블 생성 코드 CREATE TABLE `tbl_condition_test` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `col1` INT(10) UNSIGNED NULL DEFAULT NULL, `col2` INT(10) UNSIGNED NULL DEFAULT NULL, PRIMARY KEY (`id`) ) COLLATE='utf8_general_ci' ENGINE=MyISAM 2. 샘플 데이터 삽입 코드 INSERT INTO `test` (`id`, `col1`, `col2`) VALUES (1, NULL, 11); INSERT INTO `test` (`id`, `col1`, `col2`) VALUES (2, 2, 12); INSERT IN..
Database/mysql tip
2021. 1. 6. 14:39