Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

3/2/2016 SQL ­ USE | 1Keydata

SQL USE

SQL Data Warehousing CSS PHP HTML Database Normalization

SQL Tutorial
Basic SQL Commands
SQL SELECT
SQL DISTINCT
SQL WHERE SQL > Data Definition Language (DDL) > USE
SQL AND OR
The USE keyword is used to select a database in MySQL and SQL Server. The syntax is as follows:
SQL IN
SQL BETWEEN
USE "database_name";
SQL Wildcard
SQL LIKE
For example, if you want to connect to a database called "Scores", you can type in the following:
SQL ORDER BY
SQL GROUP BY
USE Scores;
SQL HAVING
SQL ALIAS
In MySQL, you can access tables in multiple databases by specifying [Database Name].[Table Name]. If the table you want
SQL AS currently in the database you use, there is no need to specify the database name.
SQL SELECT UNIQUE
SQL JOIN For example, if you want to access table "Course_110" from database "Scores" and table "Students" from database "Person
SQL INNER JOIN in the following:
SQL OUTER JOIN
SQL LEFT OUTER JOIN USE Scores;
SQL CROSS JOIN
SELECT ...
SQL INSERT INTO FROM Course_110, Personnel.Students
SQL INSERT INTO SELECT WHERE ...
SQL UPDATE ;
SQL DELETE FROM

Advanced SQL Next: SQL CREATE DATABASE


SQL UNION
SQL UNION ALL
SQL Inline View Connect Perforce & JIRA
SQL INTERSECT
See how ConnectALL can sync data between Perforce and Atlassian JIRA
SQL MINUS
SQL LIMIT
SQL TOP
SQL Subquery
Copyright © 2016 1keydata.com All Rights Reserved Privacy Policy About Contact
SQL EXISTS
SQL CASE
SQL DECODE
SQL AUTO INCREMENT
SQL IDENTITY
SEQUENCE & NEXTVAL

SQL Functions
SQL Average
SQL COUNT
SQL MAX
SQL MIN
SQL SUM
SQL ROUND

String Functions
SQL CAST
SQL CONVERT
SQL CONCATENATE
SQL SUBSTRING
SQL INSTR
SQL TRIM

http://www.1keydata.com/sql/sql­use.html 1/1

You might also like