Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BEGIN TRANSACTION;
- /* Create a table called NAMES */
- CREATE TABLE NAMES(Id INTEGER PRIMARY KEY, USER text, password text);
- /* Create few records in this table */
- INSERT INTO NAMES VALUES(1,'Tom', 'secret');
- INSERT INTO NAMES VALUES(2,'Lucy', 'secret');
- INSERT INTO NAMES VALUES(3,'Frank', 'secret');
- INSERT INTO NAMES VALUES(4,'Jane', 'secret');
- INSERT INTO NAMES VALUES(5,'Robert', 'secret');
- COMMIT;
- /* Display all the records from the table */
- SELECT USER FROM names WHERE USER = '' OR USER LIKE 't%' OR '1'='1' AND password ='asdfdsadf'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement