mirror of
https://github.com/CyC2018/Interview-Notebook.git
synced 2026-10-31 11:05:36 +00:00
Update SQL 练习.md
存储函数声明 READS SQL DATA,开启 binlog 时也能创建。
This commit is contained in:
+1
-1
@@ -764,7 +764,7 @@ VALUES
|
||||
### Solution
|
||||
|
||||
```sql
|
||||
CREATE FUNCTION getNthHighestSalary ( N INT ) RETURNS INT BEGIN
|
||||
CREATE FUNCTION getNthHighestSalary ( N INT ) RETURNS INT READS SQL DATA BEGIN
|
||||
|
||||
SET N = N - 1;
|
||||
RETURN (
|
||||
|
||||
Reference in New Issue
Block a user