摘要:
做sql的题的时候,有时候直接from 表1,表2,表3,where 条件; 但有时候又是from 表1 inner join 表2 on 条件 inner join 表3 条件. 其实二者一致,就看个人习惯了。 如: select e.emp_no,e.first_name,e.last_name 阅读全文
摘要:
将所有to_date为9999-01-01的全部更新为NULL,且 from_date更新为2001-01-01。CREATE TABLE IF NOT EXISTS titles_test (id int(11) not null primary key,emp_no int(11) NOT NU 阅读全文
摘要:
删除emp_no重复的记录,只保留最小的id对应的记录。CREATE TABLE IF NOT EXISTS titles_test (id int(11) not null primary key,emp_no int(11) NOT NULL,title varchar(50) NOT NULL 阅读全文