3.
SQL Tablo OluşturmaSQL Tablo Oluşturma CREATE TABLE ogrenci ( Ogrenci no int not null primary key, ögrenciad varchar(50), ögrencisoyad varchar(50) )
4.
Select SorgularıSelect Sorguları Ögrenci tablosondaki Kayıtları listeler. select * from ogrenci Ögrenci tablosondaki ögrenci adını ve soyadını listeler. select ogrenciad, ogrencisoyad, from ogrenci
5.
Select SorgularıSelect Sorguları select * from ogrenci where cinsiyet='K' Tablodaki kız ögrencileri listeler. select * from ogrenci where cinsiyet=‘E' and sinif=‘9C' Öğrenci tablosundaki cinsiyeti Erkek ve Sınıfı 9C olan öğrencileri listeler.
6.
Select SorgularıSelect Sorguları Öğrenci tablosundaki öğrencinin adını, soyadını ve numarasını olarak listelenir. select ogrencirad,ogrencisoyad,ogrencino as 'okul numarası' from ogrenci
7.
Select SorgularıSelect Sorguları Tablosundaki öğrencinin adını ve soyadını birleştirip, adsoyad olarak listeler. select ogrencirad+ogrencisoyad as 'Ad Soyad' from ogrenci
8.
Yeni Kayıt EklemeYeni Kayıt Ekleme INSERT INTO Ogrenci (Ogrenci no , ögrenciad , ögrenciSoyad,) VALUES(1,"AYSE","UZUN") INSERT INTO Ogrenci (Ogrenci no , ögrenciad , ögrenciSoyad,) VALUES(1,"AHMET","NEHİR")
9.
Çoklu Kayıt EklemeÇoklu Kayıt Ekleme INSERT INTO Ogrenci (Ogrenci no , ögrenciad , ögrenciSoyad,) VALUES(1,"AYSE","UZUN"), (2,"AHMET","NEHİR"), (3,"ALİ","DEMİR"), (4,"LEYLA","ÇİÇEK") (5,"MERT","AYAZ")
10.
SQL Kayıt SilmeSQL Kayıt Silme DROP TABLE ogrenci Ögrenci Tablosunu siler. DELETE FROM Musteri WHERE ogrencisoyad="UZUN" Ögrenci tablosunda soyadı uzun olan kişileri siler.
Thank you for your comment.