h1

Clauza DROP si TRUNCATE

October 15, 2009

Sterge una sau mai multe tabele/ baze de date din sistem. Se poate folosi DROP TABLE pt.stergerea unei tabele sau a mai multor tabele precum si DROP DATABASE pt.stergerea uneia sau mai multor baze de date.

Exemplu:

drop

RESTRICTII la drop database!!!:

Cand s-a facut un update (it was restored)

Cand un user este conectat la ea! (prin user si pass)

CLAUZA TRUNCATE:

truncate

Stergerea unei coloane sau unor coloane se face folosind DROP COLUMN:

Sintaxa generala:

dropcol

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: