Escape Special Character from MySQL
http://stackoverflow.com/questions/881194/how-to-escape-special-character-in-mysql
Xuebing Du

ellievsbear
we're not kids anymore.

#extradirty

if i look back, i am lost

No title available
art blog(derogatory)

shark vs the universe
sheepfilms

❣ Chile in a Photography ❣

JVL

gracie abrams

Love Begins
trying on a metaphor
Keni

No title available

bliss lane
Today's Document

tannertan36
I'd rather be in outer space 🛸

seen from Australia
seen from Vietnam

seen from Türkiye
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States

seen from United States
seen from United States

seen from United States
seen from Spain

seen from United States
seen from United States

seen from Colombia

seen from Singapore
seen from United States

seen from Türkiye

seen from Türkiye
@mysqlnote
Escape Special Character from MySQL
http://stackoverflow.com/questions/881194/how-to-escape-special-character-in-mysql
Delete All Data from Table
TRUNCATE TABLE tablename; DELETE FROM tablename;
Create User in MySQL's shell
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
Set up Root Password (Linux)
sudo mysqladmin -u root password 'password here'
SELECT within SELECT Tutorial @ http://sqlzoo.net
1. SELECT name FROM bbc WHERE population > (SELECT population FROM bbc WHERE name='Russia') 2. SELECT name, region FROM bbc WHERE region IN (SELECT region FROM bbc WHERE name='India' OR name='Iran') 2. (A better answer) SELECT name, region FROM bbc WHERE region IN (SELECT region FROM bbc WHERE name IN ('India','Iran')) 3. SELECT name FROM bbc WHERE (gdp/population) > (SELECT (gdp/population) FROM bbc WHERE name='United Kingdom' ) AND region='Europe' 4. SELECT name FROM bbc WHERE Population > (SELECT population FROM bbc WHERE name='Canada') AND Population < (SELECT population FROM bbc WHERE name='Algeria') 5. SELECT name FROM bbc WHERE name NOT IN (SELECT name FROM bbc WHERE region='Europe') AND gdp > (SELECT max(gdp) FROM bbc WHERE region='Europe') 5. (A better answer) SELECT name FROM bbc WHERE gdp > ALL (SELECT gdp FROM bbc WHERE region=’Europe’)
Query Clauses
SELECT - Determines which columns to include in the query's result set FROM - Identifies the tables from which to draw data and how the tables should be joined WHERE - Filters out unwanted data GROUP BY - Used to group rows together by common column values HAVING - Filters out unwanted groups ORDER BY - Sorts the rows of the final result set by one or more columns
loading sql schema
mysql -u USERNAME -p database_name < schema.txt
insert
INSERT INTO person (person_id, fname, lname, gender, birth_date) VALUES (null, 'William','Turner', 'M', '1979-05-27');
Alter/modify table
ALTER TABLE table_name MODIFY table_column data_type;
describe a table
DESC person;
list all tables
show tables;
select database
use database_name;
List Databases
show databases;
Create a Database
create database database_name;