Database TablesA database most often contains one or more tables. Each การแปล - Database TablesA database most often contains one or more tables. Each ไทย วิธีการพูด

Database TablesA database most ofte

Database Tables
A database most often contains one or more tables. Each table is identified by a name (e.g. "Customers" or "Orders"). Tables contain records (rows) with data.

In this tutorial we will use the well-known Northwind sample database (included in MS Access and MS SQL Server).

Below is a selection from the "Customers" table:

CustomerID CustomerName ContactName Address City PostalCode Country
1

Alfreds Futterkiste Maria Anders Obere Str. 57 Berlin 12209 Germany
2 Ana Trujillo Emparedados y helados Ana Trujillo Avda. de la Constitución 2222 México D.F. 05021 Mexico
3 Antonio Moreno Taquería Antonio Moreno Mataderos 2312 México D.F. 05023 Mexico
4

Around the Horn Thomas Hardy 120 Hanover Sq. London WA1 1DP UK
5 Berglunds snabbköp Christina Berglund Berguvsvägen 8 Luleå S-958 22 Sweden
The table above contains five records (one for each customer) and seven columns (CustomerID, CustomerName, ContactName, Address, City, PostalCode, and Country).

SQL Statements
Most of the actions you need to perform on a database are done with SQL statements.

The following SQL statement selects all the records in the "Customers" table:

Example

SELECT * FROM Customers;

Try it yourself »
In this tutorial we will teach you all about the different SQL statements.

Keep in Mind That...
SQL is NOT case sensitive: select is the same as SELECT
In this tutorial we will write all SQL keywords in upper-case.

Semicolon after SQL Statements?
Some database systems require a semicolon at the end of each SQL statement.

Semicolon is the standard way to separate each SQL statement in database systems that allow more than one SQL statement to be executed in the same call to the server.

In this tutorial, we will use semicolon at the end of each SQL statement.

Some of The Most Important SQL Commands
SELECT - extracts data from a database
UPDATE - updates data in a database
DELETE - deletes data from a database
INSERT INTO - inserts new data into a database
CREATE DATABASE - creates a new database
ALTER DATABASE - modifies a database
CREATE TABLE - creates a new table
ALTER TABLE - modifies a table
DROP TABLE - deletes a table
CREATE INDEX - creates an index (search key)
DROP INDEX - deletes an index
0/5000
จาก: -
เป็น: -
ผลลัพธ์ (ไทย) 1: [สำเนา]
คัดลอก!
ฐานข้อมูลตาราง
ฐานข้อมูลมักประกอบด้วยตารางอย่าง น้อยหนึ่ง แต่ละตารางจะระบุ ด้วยชื่อ (เช่น "ลูกค้า" หรือ "ใบสั่ง") ตารางที่ประกอบด้วยระเบียน (แถว) กับข้อมูล

ในกวดวิชานี้ เราจะใช้ห้องพักตัวอย่างฐานข้อมูล Northwind (รวมใน MS Access และ MS SQL Server)

ด้านล่างเป็นการเลือกจากตาราง "ลูกค้า":

CustomerID CustomerName ContactName ที่อยู่เมืองประเทศ PostalCode
1

Alfreds Futterkiste มาเรีย Anders Obere str. 57 เบอร์ลิน 12209 เยอรมนี
2 เอเอ็นเอทรูจิลโล่ Emparedados y helados Avda ทรูจิลโล่เอเอ็นเอ เดอลา Constitución 2222 México D.F. 05021 เม็กซิโก
3 Antonio Moreno Taquería Antonio Moreno Mataderos 2312 México D.F. 05023 เม็กซิโก
4

UK 1DP สถานฮอร์น Thomas Hardy 120 ฮันโนเวอร์ตารางลอนดอน WA1
5 Berglunds snabbköp คริอย่างไร Berglund Berguvsvägen 8 958 Luleå S สวีเดน 22
ตารางข้างบนประกอบด้วยคอร์ด 5 (หนึ่งสำหรับแต่ละลูกค้า) และเจ็ดคอลัมน์ (CustomerID, CustomerName, ContactName ที่อยู่ เมือง PostalCode และประเทศ)

คำสั่ง SQL
เสร็จสิ้นของการดำเนินการที่คุณจำเป็นต้องทำฐานข้อมูลคำสั่ง SQL

คำสั่ง SQL ต่อไปนี้เลือกเรกคอร์ดทั้งหมดในตาราง "Customers":

อย่าง

เลือก * จากลูกค้า;

ลองด้วยตัวเอง»
ในกวดวิชานี้ เราจะสอนคุณเกี่ยวกับแตกต่างกัน SQL งบ

ให้ในใจที่...
SQL ไม่เป็นกรณีสำคัญ: เลือกเหมือนกันเป็นเลือก
ในกวดวิชานี้ เราจะเขียนคำสำคัญ SQL ทั้งหมดในบน-กรณี

หมายอัฒภาคหลังจากคำสั่ง SQL ?
บางระบบฐานข้อมูลต้องใช้เครื่องหมายอัฒภาคในตอนท้ายของแต่ละ SQL งบ

อัฒภาคเป็นวิธีมาตรฐานในการแยกแต่ละคำสั่ง SQL ในระบบฐานข้อมูลที่อนุญาตให้มีมากกว่า หนึ่งคำสั่ง SQL เพื่อดำเนินการในสายเดียวกันกับเซิร์ฟเวอร์

ในกวดวิชานี้ เราจะใช้เครื่องหมายอัฒภาคในตอนท้ายของแต่ละ SQL งบ

บางของสุดสำคัญ SQL คำสั่ง
เลือก - แยกข้อมูลจากฐานข้อมูล
ปรับปรุง - ปรับปรุงข้อมูลในฐานข้อมูล
ลบ - ลบข้อมูลจากฐานข้อมูล
INSERT INTO - แทรกข้อมูลใหม่ลงในฐานข้อมูล
สร้างฐาน - สร้างฐานข้อมูลใหม่
ดัดแปลงฐานข้อมูล - ปรับเปลี่ยนฐานข้อมูล
ตารางสร้าง - สร้างตารางใหม่
ALTER TABLE - ปรับเปลี่ยนตาราง
ปล่อยตาราง - ลบตาราง
สร้างดัชนี - สร้างดัชนี (ค้นหาคีย์)
ปล่อยดัชนี - ลบดัชนี
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 2:[สำเนา]
คัดลอก!
Database Tables
A database most often contains one or more tables. Each table is identified by a name (e.g. "Customers" or "Orders"). Tables contain records (rows) with data.

In this tutorial we will use the well-known Northwind sample database (included in MS Access and MS SQL Server).

Below is a selection from the "Customers" table:

CustomerID CustomerName ContactName Address City PostalCode Country
1

Alfreds Futterkiste Maria Anders Obere Str. 57 Berlin 12209 Germany
2 Ana Trujillo Emparedados y helados Ana Trujillo Avda. de la Constitución 2222 México D.F. 05021 Mexico
3 Antonio Moreno Taquería Antonio Moreno Mataderos 2312 México D.F. 05023 Mexico
4

Around the Horn Thomas Hardy 120 Hanover Sq. London WA1 1DP UK
5 Berglunds snabbköp Christina Berglund Berguvsvägen 8 Luleå S-958 22 Sweden
The table above contains five records (one for each customer) and seven columns (CustomerID, CustomerName, ContactName, Address, City, PostalCode, and Country).

SQL Statements
Most of the actions you need to perform on a database are done with SQL statements.

The following SQL statement selects all the records in the "Customers" table:

Example

SELECT * FROM Customers;

Try it yourself »
In this tutorial we will teach you all about the different SQL statements.

Keep in Mind That...
SQL is NOT case sensitive: select is the same as SELECT
In this tutorial we will write all SQL keywords in upper-case.

Semicolon after SQL Statements?
Some database systems require a semicolon at the end of each SQL statement.

Semicolon is the standard way to separate each SQL statement in database systems that allow more than one SQL statement to be executed in the same call to the server.

In this tutorial, we will use semicolon at the end of each SQL statement.

Some of The Most Important SQL Commands
SELECT - extracts data from a database
UPDATE - updates data in a database
DELETE - deletes data from a database
INSERT INTO - inserts new data into a database
CREATE DATABASE - creates a new database
ALTER DATABASE - modifies a database
CREATE TABLE - creates a new table
ALTER TABLE - modifies a table
DROP TABLE - deletes a table
CREATE INDEX - creates an index (search key)
DROP INDEX - deletes an index
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 3:[สำเนา]
คัดลอก!
ตารางฐานข้อมูล
ฐานข้อมูลส่วนใหญ่มักจะมีหนึ่งหรือมากกว่าหนึ่งตาราง แต่ละตารางที่ระบุโดยชื่อ ( เช่น " ลูกค้า " หรือ " คำสั่ง " ) ตารางประกอบด้วยระเบียน ( แถว ) กับข้อมูล

ในกวดวิชานี้เราจะใช้เป็นที่รู้จัก northwind ฐานข้อมูลตัวอย่าง ( รวมอยู่ในการเข้าถึง MS และ MS SQL Server )

ข้างล่างนี้คือการเลือกจาก " ลูกค้า " ตาราง :

customerid customername contactname ที่อยู่เมือง postalcode ประเทศ
1

alfreds futterkiste มาเรียแอนเดอร์ obere ที่ 57 เบอร์ลิน 12209 เยอรมนี
2 Y helados อนา emparedados อนา Trujillo Trujillo Avda . เดอ ลา constituci เลออง 2222 M é Xico เม็กซิโก d.f. 05021
3 Antonio Moreno taquer íเป็น Antonio Moreno mataderos 2312 M é Xico เม็กซิโก d.f. 05023
4

รอบฮอร์น โทมัส ฮาร์ดี 120 ฮันโนเวอร์ลอนดอน wa1 1dp UK
.5 berglunds snabbk ö P คริสติน่าเบิร์กเลิ่นด์ berguvsv และ Gen 8 sweden . kgm s-958 22 สวีเดน
ตารางข้างต้น ประกอบด้วยห้าระเบียน ( หนึ่งสำหรับลูกค้าแต่ละราย ) และเจ็ดคอลัมน์ ( customerid customername contactname , , , ที่อยู่ , เมือง , postalcode และประเทศ ) .

งบ SQL
ส่วนใหญ่ของการกระทำที่คุณต้องการที่จะแสดงบน ฐานข้อมูลเสร็จ

งบ SQL .ต่อไปนี้ SQL คำสั่งเลือกระเบียนทั้งหมดใน " ลูกค้า " ตาราง :


* * * * จากตัวอย่างเลือกลูกค้า ;

ลองเอง»
ในกวดวิชานี้เราจะสอนคุณทั้งหมดเกี่ยวกับงบ SQL ที่แตกต่างกัน

เก็บในใจว่า . . . . . . .
SQL ไม่ได้เป็นกรณีที่ละเอียดอ่อน : เลือกเหมือนเดิม เป็นเลือก
ในกวดวิชานี้เราจะเขียนคำสำคัญ SQL ทั้งหมดในตัวพิมพ์ใหญ่

เครื่องหมายอัฒภาคหลังจากงบ SQL ?
ระบบฐานข้อมูลบางอย่างต้องใช้เครื่องหมายอัฒภาคที่ส่วนท้ายของแต่ละ SQL งบ

เซมิโคล่อนเป็นวิธีมาตรฐานเพื่อแยกแต่ละคำสั่ง SQL ในฐานข้อมูลระบบที่อนุญาตให้มีได้มากกว่าหนึ่ง SQL งบที่จะดำเนินการในโทรศัพท์เดียวกันกับเซิร์ฟเวอร์ .

ในกวดวิชานี้เราจะใช้เครื่องหมายอัฒภาคที่ส่วนท้ายของแต่ละ SQL งบ

บางส่วนของที่สำคัญที่สุดของ SQL คำสั่ง
เลือกสกัดข้อมูลจากฐานข้อมูล
การปรับปรุงการปรับปรุงข้อมูลในฐานข้อมูล
ลบ - ลบข้อมูลจากฐานข้อมูล
แทรก - แทรกข้อมูลใหม่ลงในฐานข้อมูล
สร้างฐานข้อมูลสร้างฐานข้อมูลใหม่
-
ปรับเปลี่ยนฐานข้อมูลฐานข้อมูลสร้างตาราง - สร้างใหม่ - แก้ไขเปลี่ยนแปลงตารางตาราง

วางโต๊ะโต๊ะ - ลบตาราง
สร้าง ดัชนี - สร้างดัชนี ( คีย์ค้นหา )
- ทิ้งลบดัชนีดัชนี
การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2024 I Love Translation. All reserved.

E-mail: