Tags: str IP add benchmark explain log username Lin case when valueMySQL SQL Injection Cheat SheetSome useful syntax reminders for SQL injection into MySQL databases ... This post was part of a series of SQL injection Cheat Sheet
sheet
Microformats cheat sheet
Misc
Chmod chart
Complete listing of common camera symbols.
The Unicode-Database
RGB hex colour chart-PNG
Pretty good PGP reference card
Search engine cheat sheet
Quick Reference cards
MySQL
MySQL
/chrisallenlane/cheat/raw/master/cheat/autocompletion/cheat.bash
# mv cheat. Bash /etc/bash_completion. D/
Note: The team has uploaded automatic completion scripts for other interpreters on Git, which can be cloned and used on different interpreters. Use the links below to find the automatic completion script for the remaining interpreters
to this feature, simply clone the 'cheat.bash' script down and copy it to your system's correct path.
# wget Https://github.com/chrisallenlane/cheat/raw/master/cheat/autocompletion/cheat.bash
# MV Cheat.bash/etc/bash_completion.d/
Note: The team has uploaded automatic completion scripts for other interpreters on Git, which can be cloned and used on different interpreters. Use the links be
Summary:this page is a printf formatting cheat sheet. I originally created this cheat sheet for my own purposes, and then thought I would share it is here.A cool thing about the formatting syntax was that the specifiers you can use be printf very similar, if not identical, B
custom implementation.
Escape MisunderstandingIt's not that it's absolutely safe after escaping, for example1 The following code can be executed in Content-type as an XHTML document2 The following code, Escape is lost, interface execution can draw any DOM
Common Security methodsIt is generally assumed that InnerText does not execute code and can mitigate XSS attacks instead of innerHTML, but also relies on tags, and the following example can execute code
Dom b
Tags: statement upd dealloc ace http int form Insert backPostgreSQL Cheat Sheet CREATE DATABASEDbName;CREATE TABLE (with auto numbering integer ID)TableName (
ID serial PRIMARY KEY,
name varchar () UNIQUE not NULL,
dateCreated timestamp DEFAULT current_timestampADD a primary keyTableName ADD PRIMARY KEY (ID);Create an INDEXIndexName On TableName (ColumnNames);Backup a Database(command line) DbName dbName
Insert data syntax for four basic elements (add, delete, modify, and query) of an SQL statement: INSERTINTO table name (Field 1, Field 2 ,...) VALUES (value 1, value 2 ,...) INTO is optional. for example, insert the name zhang San student no. s2t14 age 22 to the stuName, stuNo, and stuAge fields in the stuInfo table. INSERTINTOstuInfo (stuName, stuNo, st
INSERT data Syn
Tags: Remember Change Order rename new str des check logsData Sheet
View Data Sheet
Modify Table name
Modify Field names
modifying field data types
Add Delete-field
constraint (primary foreign key default check)
To view the table structure:
Syntax: Desribe (description) table_name;
DESC table_name;
a personnel database with such a data sheet:
Id
LastName
FirstName
Address
City
1
Adams
John
Oxford Street
London
2
Bush
George
Fifth Avenue
New York
3
Carter
Thomas
Changan Street
Beijing
First create the database: Create Database w3s; To view the database that was created: show databases; Sele
Some of the most commonly used SQL statement syntax for the triple compilation. Need a friend to come over to refer to the next
I. Data Control statement (DML) section
1.INSERT (Insert the statement into the data sheet)
INSERT into table name (field name 1, field Name 2, ...) Values (value 1, value 2, ...);
INSERT into table name (field name 1, field Name 2,
money=money+200 WHERE in (3,6); --Query all members of the surname Zhang Select*from t_user WHERE username like ' Zhang% '; --Query all names containing the members of the sheet Select*from t_user WHERE username like '% zhang% '; --Query name only two words and surname Zhang Select*from t_user WHERE username like ' Zhang _ '; --Show all members by salary sort Select*from t_user ORDER by Money DESC; --The default is ASC ascending, desc descending --Di
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.