DB - 한 페이지로 정리하는 SQL (Table 관련)
주석 -- 한줄 주석 /* 문장 주석 */ SELECT (조회) /* 기본 */ SELECT column1, column2, ... /* DISTINCT, COUNT, AVG, SUM, MIN, MAX */ FROM table_name WHERE condition /* =, , !=, >, =, 30 THEN "The quantity is greater than 30" WHEN Quantity = 30 THEN "The quantity is 30" ELSE "The quantity is under 30" END AS QuantityText FROM OrderDetails; /* 예제2 */ SELECT CustomerName, City, Country FROM Customers ORDER BY (CASE..
2019. 1. 28.