絞り込み条件を変更する
検索条件を絞り込む
有料ブログの投稿方法はこちら

すべてのカテゴリ

2 件中 1 - 2 件表示
カバー画像

SQL

SQLSQL was developed to use relational database. It is standardized by ISO andJIS and is widely used.You can use SQL (Structured Query Language) to create, manipulate, update,and delete tables. SQL consists of DDL (Data Definition Language),DCL (Data Control Language), and DML (Data Manipulation Language).DCL may be included in DDL.■Define a tableThe table has a two-dimensional structure consisting of rows and columns.It stores the actual data. There can be multiple tables, but the table namesmust be different.(To identify the table)For example, if you define a "Grade" table consisting of "Student_Number","Name", "Language", "Math", and "Class", SQL is as bellows.CREATE TABLE Grade(Student_N
0
カバー画像

DML(INSERT, UPDATE, DELETE)

I describe the SQL when you insert, update, and delete the data in a table onthe database.(1)InsertIf you want to insert the data into a table, use "INSERT" in the SQL.The SQL is as follows.INSERT INTO TableName(Item, Item, ・・・)VALUES(Data, Data, ・・・)After the table name, describe all the items of the table you want to register.Be sure to describe the primary key.After "VALUES", describe the data you want to register. Also here, be sure todescribe the data you want to register in the primary key.For example, the SQL for registering a student with student number 11003 inthe "Grade" table is as follows.INSERT INTO Grade(Student_Number, Name, Language, Math, Class)VALUES('11003', 'Sasaki', 85,
0
2 件中 1 - 2
有料ブログの投稿方法はこちら