PHP Manual
PEAR Manual
Smarty Manual
PostgreSQL
MySQL Manual
Perl Manual
Ciekawe adresy
- Ginekolog Poznań
- Hiszpański Poznań
- Teneryfa
- Tłumaczenia angielski
- Ubezpieczenia
- Deweloper
- Wypożyczalnia Samochodów Łódź
Czytnik RSS
» Serwery wykorzystywane przez The Pirate Bay zatrzymane na Politechnice Śląskiej?Z nieoficjalnych na razie informacji wynika, że w wyniku porannej akcji Komendy Wojewódzkiej Policji w Katowicach, Prokuratury Okręgowej w Gliwicach oraz Interpolu, na Politechnice Śląskiej zatrzymano dzisiaj serwery, które miały być wykorzystywane między innymi do hostingu serwisu The Pirate Bay.
» Mafia 2 (PC) - W cieniu legendy
Fedory, krążowniki szos, plującą ogniem broń oraz półnagie kobiety. Między innymi takie rzeczy znajdziemy w kontynuacji wydanej w roku 2002 gry Mafia. Oryginalna produkcja czeskiego Illusion Softworks przez wielu fanów elektronicznej rozrywki, do tej pory uznawana jest za rewelacyjny tytuł. Czy jej sequel jest jeszcze lepszy?
» Stała posada w cenie
Polscy pracownicy są z każdym rokiem coraz mniej skłonni do zmiany pracy. W 2001 r. znalezieniem nowej posady zainteresowanych było niecałe 9% zatrudnionych, zaś na początku 2010 r. odsetek ten spadł do 0,5% - wynika z raportu firmy Sedlak & Sedlak.
» Czwartkowy Przegląd Prasy
Klienci mają kłopoty z nowym serwisem Citibank Online... Nowa opcja wyszukiwania w sieci: Google Instant... Mediatel jest na sprzedaż, ale jeszcze nie dziś... Vodafone zarobi na sprzedaży udziałów w China Mobile... Utilis IT musi zaciskać pasa, czekając na nowe zlecenia... Smartfony coraz bardziej popularne... Polska to świetne miejsce dla nowych inwestycji... Dziecko Kulczyka wejdzie na NewConnect... Polska o krok od startu cyfrowej tv... "Sniper 2" w sklepach w połowie 2011 r...
alter domain
synopsis
alter domain name { set default expression | drop default } alter domain name { set | drop } not null alter domain name add domain_constraint alter domain name drop constraint constraint_name [ restrict | cascade ] alter domain name owner to new_owner alter domain name set schema new_schema description
alter domain changes the definition of an existing domain. there are several sub-forms:
- set/drop default
these forms set or remove the default value for a domain. note that defaults only apply to subsequent insert commands; they do not affect rows already in a table using the domain.
- set/drop not null
these forms change whether a domain is marked to allow null values or to reject null values. you may only set not null when the columns using the domain contain no null values.
- add domain_constraint
this form adds a new constraint to a domain using the same syntax as create domain. this will only succeed if all columns using the domain satisfy the new constraint.
- drop constraint
this form drops constraints on a domain.
- owner
this form changes the owner of the domain to the specified user.
- set schema
this form changes the schema of the domain. any constraints associated with the domain are moved into the new schema as well.
you must own the domain to use alter domain. to change the schema of a domain, you must also have create privilege on the new schema. to alter the owner, you must also be a direct or indirect member of the new owning role, and that role must have create privilege on the domain's schema. (these restrictions enforce that altering the owner doesn't do anything you couldn't do by dropping and recreating the domain. however, a superuser can alter ownership of any domain anyway.)
parameters
- name
the name (possibly schema-qualified) of an existing domain to alter.
- domain_constraint
new domain constraint for the domain.
- constraint_name
name of an existing constraint to drop.
- cascade
automatically drop objects that depend on the constraint.
- restrict
refuse to drop the constraint if there are any dependent objects. this is the default behavior.
- new_owner
the user name of the new owner of the domain.
- new_schema
the new schema for the domain.
examples
to add a not null constraint to a domain:
alter domain zipcode set not null;
to remove a not null constraint from a domain:
alter domain zipcode drop not null;
to add a check constraint to a domain:
alter domain zipcode add constraint zipchk check (char_length(value) = 5);
to remove a check constraint from a domain:
alter domain zipcode drop constraint zipchk;
to move the domain into a different schema:
alter domain zipcode set schema customers;
compatibility
alter domain conforms to the sql standard, except for the owner and set schema variants, which are postgresql extensions.
Najskuteczniejsza reklama to pozycjonowanie - Pozycjonowanie stron <= zajrzyj tu i dowiedz się więcej o pozycjonowanie stron