一.DQL语句
-- ==========================================DQL:基本查询==============================================
-- 1.查询指定字段 name,entrydate并返回
select name , entrydate from tb_emp;-- 2.查询返回所有字段
select id, username, password, name, gender, image, job, entrydate, create_time, update_time from tb_emp;select * from tb_emp;
-- 3.查询所有员工的name,entrydate,并起别名(姓名、入职日期)
select name as 姓名,entrydate as 入职日期 from tb_emp;select-- 4.查询已有员工关联了哪几种职位(不要重复)
select distinct job from tb_emp;