mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Merge pull request #245 from shigemk2/add-mysql-statements
Add Basic MySQL Statements
This commit is contained in:
commit
b59e83e706
1 changed files with 12 additions and 0 deletions
|
@ -17,3 +17,15 @@ GRANT ALL PRIVILEGES ON database.* TO 'user'@'localhost'IDENTIFIED BY 'password'
|
||||||
SHOW GRANTS FOR CURRENT_USER();
|
SHOW GRANTS FOR CURRENT_USER();
|
||||||
SHOW GRANTS;
|
SHOW GRANTS;
|
||||||
SHOW GRANTS FOR CURRENT_USER;
|
SHOW GRANTS FOR CURRENT_USER;
|
||||||
|
|
||||||
|
# Basic SELECT Statement
|
||||||
|
SELECT * FROM tbl_name;
|
||||||
|
|
||||||
|
# Basic INSERT Statement
|
||||||
|
INSERT INTO tbl_name (col1,col2) VALUES(15,col1*2);
|
||||||
|
|
||||||
|
# Basic UPDATE Statement
|
||||||
|
UPDATE tbl_name SET col1 = "example";
|
||||||
|
|
||||||
|
# Basic DELETE Statement
|
||||||
|
DELETE FROM tbl_name WHERE user = 'jcole';
|
Loading…
Reference in a new issue