Bạn hoàn toàn thực thi các thao tác như Insert, Update hay Delete dữ liệu trên SQL Server dễ dàng bằng cách vào phần edit trên table trong database của bạn



Ở đây, ta sẽ dùng lệnh SQL để thực thi các thao tác đó. Như thường lệ, bạn hãy mở Query Editor Ctrl + N (Nếu không nhìn thấy: View -> Toolbars -> Standard)

Bên dưới là mẫu lệnh thao tác cơ bản, chúng sẽ trở nên khó khăn khi bạn đặt ra yêu cầu cao hơn trong khi thao tác.


Use NameDatabase

Insert into Khoa values('makhoa01','ten khoa1')
Insert into Khoa values('makhoa03','ten khoa2')
Insert into Khoa values('makhoa02','ten khoa3')

Update Khoa set TenKhoa='Ten Khoa Moi' where MaKhoa='makhoa01'
Update Khoa set TenKhoa='Ten Khoa Moi' where MaKhoa='makhoa02'
Update Khoa set TenKhoa='Ten Khoa Moi' where MaKhoa='makhoa03'

Delete from Khoa where Makhoa='makhoa01'
Delete from Khoa where Makhoa='makhoa02'
Delete from Khoa where Makhoa='makhoa03'


Chuyển qua phần khác chúng ta sẽ tìm hiểu tiếp vấn đề này trong trong lập trình.

thumbnail [SQL] How To: Insert, Update, Delete Record

data:label.name author

premiumpng.com

Design Publisher

Download 0
No comments
Template in .PSD format

MR Laboratory License

Free for personal purpose use . More info


Buy Now This Template

No comments:

Post a Comment

Commets Download Photoshop Actions, Lightroom Presets, PSD Template, Mockups, Stocks, Vectors, Fonts. Download free

Newer Post Older Post Home

Copyright © 2021 MR Laboratory All rights reserved.

Setting