함수 예제 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.
CRUD 예제
세팅 데이터베이스 test5 테이블 product 컬럼 id - int, pri, not null, auto incrementproduct_name - varchar(100)category - varchar(50)price - intstock_quantity -intcreated_at - timestamp더보기INSERT INTO product (product_name, category, price, stock_quantity, created_at) VALUES('삼성 스마트폰', '전자제품', 850000, 50, '2023-01-15'),('LG 냉장고', '가전제품', 1200000, 30, '2023-01-20'),('다이슨 청소기', '가전제품', 550000, 20, '2023-02-05')..
2024. 11. 27.