Notes
Notes - notes.io |
/*create database Enginingözlükleri
go
use Enginingözlükleri
go
create table Tbl_ürünler(urunlerid int primary key identity(1,1), uurunadi varchar(50))/*tablo oluşturma*/
go
create table tbl_kategori(kategoriId int primary key identity(1,1), kategoriadi varchar(50), urunNoFK int)
go
create table tbl_Il(ilId int primary key identity(1,1), iladi varchar(50))
go
alter table tbl_kategori add constraint Fkkatoreidenürünlere foreign key(urunNoFK) references Tbl_ürünler(urunlerid) /*İlişki*/
go
alter table Tbl_ürünler alter column uurunadi varchar(40) /*Güncelleme*/
go
alter table tbl_kategori drop column kategoriadi /*Kaldırma*/
go
create procedure İsimver11 (@id int, @adi varchar(40) )
as begin select * from Tbl_ürünler where urunlerid=@id or uurunadi=@adi end
go
exec İsimver11 6,sercan /*Procedure CRUD*/
create view İsimver3 as select * from Tbl_ürünler where uurunadi='engin' /*View*/
go
select * from İsimver3
create procedure alperiveriyoruz(@adi varchar(40))
as begin insert into Tbl_ürünler (uurunadi) values (@adi)
end
go
exec alperiveriyoruz alper
create procedure guncelleme (@adi varchar(40))
as begin
update Tbl_ürünler set uurunadi=@adi where urunlerid=6
end
go
exec guncelleme tanker
/*Değişken belirleme*/
declare @sayi1 int
set @sayi1=2
if (@sayi1=2) begin print 'Kaldın Ya' end
declare @sayi2 int
set @sayi2=6
declare @toplam int
set @toplam=@sayi1*@sayi2
print @toplam
select @toplam
/*LOGİN / User /Yetki verme*/
create login engin with password='engin123'
go
create user ogrencilere for login engin
go
grant insert,update,delete on Tbl_ürünler to ogrencilere
go
deny insert on Tbl_ürünler to ogrencilere */
|
Notes.io is a web-based application for 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 12 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