SQL中的INT數據類型表示整數值,可以進行多種操作
SELECT column1 + column2 AS total FROM table_name;
SELECT * FROM table_name WHERE column > 50;
SELECT age, AVG(income) AS average_income FROM table_name GROUP BY age;
SELECT * FROM table_name ORDER BY income DESC;
SELECT employees.name, departments.department_name
FROM employees
JOIN departments ON employees.department_id = departments.department_id;
這些只是使用INT數據類型的一些基本操作。實際上,您可以根據需求執行更復雜的查詢和操作。