begin
print'hello world';
end
begin
declare @var int;
--OR
declare @var1 int = 200;
set @var = 100
print @var;
print @var1;
end
begin
declare @name varchar(20);
declare @sa1 numeric(8,2);
set @name = 'namamu';
set @sa1 = 5000;
print @name;
print @sa1;
print @name +'concat tengah '+ cast(@sa1 as varchar);
end
the last not yet
Langganan:
Posting Komentar (Atom)
0 Response to "T-SQL Example"
Posting Komentar