Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
-- insert, update, delete
silmek için delete
delete from tabloadı where (koşul)
/*Koşulu sağlayan satırları/kayıtları siler
Koşul from yazmazsak tüm kayıtları siler
Silmeden önce koşulu sağlayan satırları görmekte fayda var: */
select * from tabloadı where (koşul)
-- Tükendi = 1 olarak işaretlenmiş ürünleri silelim.
-- Seri sonu, seri sonu ürünler
select * from ürünler where tükendi = 1
delete from ürünler where tükendi = 1
-- Müşteriler tablosunda telefon numarası boş (NULL) olan müşterileri silelim.
select * from Müşteriler where telefon is null
delete from müşteriler where telefon is null
-- Backupdan restore ettik telefonu, nullar geldi mi?
select * from müşteriler where telefon is null -- geldi
----------------------------------------------------------
Data Definition Language DDL : Veri Tanımlama Dİli
Veritabanı nesneleri yaratmak için create,
değiştirmek için alter, silmek ya da yok etmek için drop
create NesneTürü NesneAdı
(
-- her veritabanı nesnesi için farklı direktifler
)
create database vtad
on primary
(
-- data dosyası özellikleri
)
log on
(
-- log/günlük dosyası özellikleri
)
Turkish_CI_AI : Case Insensitiv: Büyük-küçük harf duyarsız, Accent Insensitive: Aksan duyarsız
Turkish_CS_AS : Case Sensitiv: Büyük-küçük harf duyarlı, Accent Sensitive: Aksan duyarlı
AI: Aksan duyarsız ise: ş-s ğ-g ü-u ç-c ö-o aynı şeyler kabul edilir.
-- BFirma adında bir veritabanı yaratın, içinde müşteriler tablosu oluşturup, üç kayıt giriniz.
1. önce master vt ye geçilir
2. drop
3. BFirma vt yaratalım
4. Dosyaların yaratılmasını bekle
5. BFirma VT ye bağla
6. Tablo oluştur
7. Kayıt gir.
use master
go
drop database BFirma
go
create database Bfirma
on primary
(
Name = 'Bfirma'
Filename= 'C:Program FilesMicrosoft SQL ServerMSSQL14.SQLEXPRESSMSSQLDATABfirma.mdf'
SIZE=8MB
MAXSIZE=1024MB,
FILEGROWTH=128MB
)
log on
(
Name = 'Bfirma_log'
Filename= 'C:Program FilesMicrosoft SQL ServerMSSQL14.SQLEXPRESSMSSQLDATABfirma.ldf'
SIZE=8MB
MAXSIZE=1024MB,
FILEGROWTH=10%
)
go -- kesinlikle go yazılması gereken yer? Dosyaların yaratılması beklenir.
use Bfirma
go
create table Müşteriler
create database
create table
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team