h1

Declararea si definirea variabilelor clauza DECLARE, clauza CAST conversie variabile

February 26, 2010

Exemplul1: Declararea si definirea variabilelor in mssql:

a) Variabila sir de caractere

b) Variabila intreaga (int)

Varianta 2 pt. b) conversie dintr-un tip de variabila in alt tip de variabila se poate realiza si cu CAST

c) Variabila de tip data (datetime)

Exemplul2: Declarare si definire variabile exemplu while in mssql:

Exemplul3: Declararea si definirea variabilelor in mssql:

Se va afisa : Mihai Sprinceana

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: