SQL43 将所有to_date为9999-01-01的全部更新为NULL
本文最后更新于:2022年4月9日 中午

题目描述
将所有to_date为9999-01-01的全部更新为NULL,且 from_date更新为2001-01-01。
1 |
|
更新后的值:
titles_test 表的值:
id | emp_no | title | from_date | to_date |
---|---|---|---|---|
1 | 10001 | Senior Engineer | 2001-01-01 | NULL |
2 | 10002 | Staff | 2001-01-01 | NULL |
3 | 10003 | Senior Engineer | 2001-01-01 | NULL |
4 | 10004 | Senior Engineer | 2001-01-01 | NULL |
5 | 10001 | Senior Engineer | 2001-01-01 | NULL |
6 | 10002 | Staff | 2001-01-01 | NULL |
7 | 10003 | Senior Engineer | 2001-01-01 | NULL |
输入描述
无
输出描述
无
题解
1 |
|
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!