Auto commit
This commit is contained in:
parent
fe55e3aad9
commit
813d3b3be4
@ -222,6 +222,22 @@ SET a.avatar = LOAD_FILE('C:/TTLXExam/20501071168/MYSQLDB/3/jinyong.jpg')
|
|||||||
WHERE a.author_name = '金庸';
|
WHERE a.author_name = '金庸';
|
||||||
|
|
||||||
#6
|
#6
|
||||||
|
#INSTR(主串, 子串) 判断子串在主串中的位置并返回
|
||||||
|
#SUBSTR(字符串, 起始位置) 从起始位置开始截取字符串
|
||||||
|
SELECT SUBSTR(b.note,INSTR(b.note,'-')+2)
|
||||||
|
FROM tb_books b;
|
||||||
|
|
||||||
|
UPDATE tb_books b
|
||||||
|
SET b.note = SUBSTR(b.note,INSTR(b.note,'-')+2);
|
||||||
|
|
||||||
|
#7
|
||||||
|
SELECT b.book_id, b.title,
|
||||||
|
FROM tb_books b
|
||||||
|
WHERE YEAR(b.publication_date) BETWEEN 1980 AND 2010
|
||||||
|
ORDER BY
|
||||||
|
|
||||||
|
#8
|
||||||
|
|
||||||
|
#9
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user