boot-database
h2 h2 DROP TABLE IF EXISTS USER; CREATE TABLE IF NOT EXISTS USER( ID NUMBER IDENTITY PRIMARY KEY, -- identity는 auto increment 값이다. NAME VARCHAR(50), ADDRESS VARCHAR(50) ); INSERT INTO USER(NAME, ADDRESS) VALUES('HONG', 'SEOUL'); INSERT INTO USER(NAME, ADDRESS) VALUES('KIM', 'BUSAN'); INSERT INTO USER(NAME, ADDRESS) VALUES('LEE', 'INCHEON'); drop table user; application.properties spring.datasour..
2024.03.11