SQL 基础
SQL 简介
SQL 入门
SQL 语法
SQL 创建数据库
SQL 创建表
SQL Constraints
SQL Insert
SQL Select
SQL Where
SQL AND & OR
SQL IN & Between
SQL Order By
SQL Top/Limit
SQL Distinct
SQL Update
SQL Delete
SQL Truncate Table
SQL Drop
SQL 连接
SQL Joining Tables
SQL Inner Join
SQL Left Join
SQL Right Join
SQL Full Join
SQL Cross Join
高级 SQL
SQL Union
SQL Like
SQL Alter Table
SQL Aliases
SQL Group By
SQL Having
SQL Create View
SQL Create Index
SQL Dates and Times
SQL Cloning Tables
SQL 临时表
SQL 子查询
SQL 注入
SQL 参考
SQL 数据类型
MySQL 数据类型
SQL Server 数据类型
SQL 方法
SQL 入门 - SQL基础教程 - 笔下光年
网站首页
SQL 入门
在本教程中,您将学习如何设置 SQL 实践环境。 ## Getting Started with SQL As you already know SQL is used to communicate with the database, so before you start experimenting with SQL, you need access to a database system first. You can test or execute most of the SQL statements provided as examples throughout the tutorials, using our online SQL editor. This SQL editor uses Web SQL Database to store and access data on the client side. However, to execute some SQL statement you'll need access to a full-fledged database management system like MySQL, SQL Server etc. <div class="callout callout-info mb-3">Note: Web SQL Database allows you to create SQL databases and make SQL calls on the client side. It is based on the popular and open source SQLite engine. Web SQL is supported by Chrome, Opera and Safari browsers.</div> ## What is Relational Database A relational database is a database divided into logical units called tables, where tables are related to one another within the database. Relational database allows data to be broken down into logical, smaller, and manageable units for easier maintenance and better performance. Tables are related to one another through common keys or fields in a relational database system, that's why even though the desired data may exist in more than one table, you can easily join multiple tables together to get combined data set using a single query. <div class="callout callout-info mb-3">Note: SQL became a standard of the American National Standards Institute (ANSI) in 1986, and of the International Organization for Standardization (ISO) in 1987. Although, most SQL code is not completely portable among different database systems without adjustments.</div> ## Setting Up Work Environment for Practicing SQL If you have no DBMS (Database Management System) already installed on your system, you have several options to choose from. You can install a free, open-source DBMS. MySQL is the most popular and widely supported open-source database management system. It is very easy to download and use and available for both Windows and Linux (or UNIX) operating system. You can download it freely from here https://dev.mysql.com/downloads/mysql/ You can also install SQL Server Express. It is a free version of Microsoft SQL Server which allows up to 10GB of database storage. You can download the express edition from here https://www.microsoft.com/en-in/download/details.aspx?id=30438. Alternatively, if you're planning to develop an application with PHP and MySQL you can install WampServer or XAMPP. WampServer is a Windows web development environment. It allows you to create web applications with Apache2, PHP and a MySQL database. It will also provide the MySQL administrative tool PhpMyAdmin to easily manage your databases using a web browser. You can download it from here http://www.wampserver.com/en/
上一篇:
SQL 简介
下一篇:
SQL 语法