CRUD, 함수 예제 2
세팅 데이터베이스test6테이블subscriptions컬럼더보기INSERT INTO subscriptions (user_name, plan_name, start_date, end_date, status, price) VALUES('김철수', 'Premium', '2023-01-01', '2023-12-31', 'Active', 12000),('이영희', 'Basic', '2023-06-01', '2023-11-30', 'Expired', 6000),('박준혁', 'Standard', '2023-07-01', '2023-12-31', 'Active', 9000),('최수진', 'Premium', '2023-01-01', '2023-12-31', 'Active', 12000),('정우진', 'Basic', ..
2024. 11. 28.
CRUD, 함수 예제 1
세팅 데이터베이스test6테이블employees컬럼더보기INSERT INTO employees (name, position, email, phone_number, salary) VALUES('김철수', 'Manager', 'chulsoo.kim@example.com', '010-1234-5678', 5000000),('이영희', 'Developer', 'younghee.lee@example.com', '010-2345-6789', 4000000),('박준혁', 'Designer', 'junhyuk.park@example.com', '010-3456-7890', 3500000),('최수진', 'Tester', 'sujin.choi@example.com', '010-4567-8901', 3200000),('..
2024. 11. 28.
함수 예제 1
세팅 데이터베이스test6테이블books컬럼id - int, pri, not null, auto incrementtitle - varchar(100)author_fname - varchar(100)author_lname - varchar(100) released_year - intstock_quantity -intpages - int 더보기INSERT INTO books (title, author_fname, author_lname, released_year, stock_quantity, pages)VALUES('The Namesake', 'Jhumpa', 'Lahiri', 2003, 32, 291),('Norse Mythology', 'Neil', 'Gaiman',2016, 43, 304),('Amer..
2024. 11. 28.