By GokiSoft.com|
21:07 11/12/2023|
SQL Server/MySQL
[Share Code] Tìm hiểu CSDL - C2307L
#readme.txt
Nội dung kiến thức:
- CSDL là gì & tại sao phải học?
database -> Hệ thống quản trị CSDL
- SQL Server -> MS -> ???
- Oracle
- MySQL -> Sử dụng cái này
- Access (Office)
-> Cùng sử dụng 1 ngôn ngữ để truy vấn dữ liệu : SQL
- Cài đặt môi trường phát triển
- Tools
- Cách tạo CSDL
- Tạo bảng
- Chèn dữ liệu
- Command line
- Cách tạo CSDL
- Tạo bảng
- Chèn dữ liệu
#SQLQuery1.sql
create table products (
title nvarchar(150),
thumbnail nvarchar(500),
price float,
content ntext
)
go
insert into products (title, thumbnail, price, content)
values
(N'SQL Server', N'sdfhdsf', 3000, N'okok')
go
Tags:
Phản hồi từ học viên
5
(Dựa trên đánh giá ngày hôm nay)

GokiSoft.com
2023-12-11 13:44:44
#readme.txt
Nội dung kiến thức:
- CSDL là gì & tại sao phải học?
database -> Hệ thống quản trị CSDL
- SQL Server -> MS -> ???
- Oracle
- MySQL -> Sử dụng cái này
- Access (Office)
-> Cùng sử dụng 1 ngôn ngữ để truy vấn dữ liệu : SQL
- Cài đặt môi trường phát triển
- Tools
- Cách tạo CSDL
- Tạo bảng
- Chèn dữ liệu
- Command line
- Cách tạo CSDL
- Tạo bảng
- Chèn dữ liệu
#SQLQuery1.sql
create table products (
title nvarchar(150),
thumbnail nvarchar(500),
price float,
content ntext
)
go
insert into products (title, thumbnail, price, content)
values
(N'SQL Server', N'sdfhdsf', 3000, N'okok')
go
create table SinhVien (
roll_number nvarchar(10) primary key,
fullname nvarchar(50)
)
go
insert into SinhVien (roll_number, fullname)
values
('1', 'Sinh Vien K')
go
insert into SinhVien (roll_number, fullname)
values
('12', 'Sinh Vien K'),
('13', 'Sinh Vien K'),
('14', 'Sinh Vien K')
go
insert into SinhVien (roll_number)
values
('122')
go
insert into SinhVien (roll_number)
values
('1232')
go
select * from SinhVien
go
select fullname from SinhVien
go
select roll_number, fullname from SinhVien
go
select roll_number 'MSV', fullname from SinhVien
go
select roll_number 'MSV', fullname as 'TꮠSV' from SinhVien
go
--TH: fullname -> khong dc de trong
drop table SinhVien
go
create table SinhVien (
roll_number nvarchar(10) primary key,
fullname nvarchar(50) not null
)
go