Skip to content

Instantly share code, notes, and snippets.

@sezemiadmin
Last active December 26, 2018 02:25
Show Gist options
  • Save sezemiadmin/d88c03ffea859979727785e01424177d to your computer and use it in GitHub Desktop.
Save sezemiadmin/d88c03ffea859979727785e01424177d to your computer and use it in GitHub Desktop.
RDBMSの仕組み 超入門 サンプルSQL
grant [権限名]
on [スキーマ名].[テーブル名]
to [ユーザ名]
mysql> insert into SAMPLE01
-> VALUES (111, "X", "2018-10-18");
Query OK, 1 row affected (0.02 sec)
mysql> insert into SAMPLE01
-> VALUES (111, "X", "2018-10-18");
ERROR 1142 (42000): INSERT command denied to user 'myuser260'@'localhost' for table 'SAMPLE01'
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| SEP1019 |
| SEPLUS |
| information_schema |
+--------------------+
3 rows in set (0.01 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment