PHP Manual
PEAR Manual
Smarty Manual
PostgreSQL
MySQL Manual
Perl Manual
Ciekawe adresy
- Klucz udarowy
- Angielski Poznań
- Dominikana
- Smycze silikonowe
- Biuro Rachunkowe Poznań
- Opony
- Konwersacje
- Manekiny
Czytnik RSS
» Uwaga na pamięci USB !!!Pierwsze miejsce na listopadowej liście zagrożeń opublikowanej w raporcie "Wirusy listopada - globalne trendy rozwoju zagrożeń" przez firmę ESET, producenta m.in. oprogramowania ESET NOD32 Antivirus, zajmuje złośliwe oprogramowanie ukrywające się w plikach Autostartu różnego typu nośników.Laboratoria firmy ESET opisują te pliki jako INF/Autorun. Infekują one komputery poprzez pliki automatycznego startu danego nośnika np. popularne obecnie przenośne pamięci USB.Najprostszym sposobem na uniknięcie problemów i ochroną przed tego typu zagrożeniami jest wyłączenie opcji autostartu nośników w ustawieniach systemowych. Warto również przeskanować komputer oprogramowaniem antywirusowym oraz innym oprogramowaniem rozpoznającym tego typu zagrożenia np. programem ComboFixPełna treść raportu dostępna jest pod adresem www.eset.pl/download/informacje/Lista_wirusow_listopada_wg_laboratoriow_ESET.pdfźródło: www.eset.pl
» iTunes Ping szybko zdobywa użytkowników i spamerów
Nowy portal społecznościowy Apple’a - Ping - w ciągu 48 godzin od uruchomienia miał już ponad milion aktywnych kont. Firma pochwaliła się tym osiągnięciem na swojej oficjalnej stronie. Niestety zdaje się, że nie wszystko idzie zgodnie z planem.
» Krótko: MSZ będzie miało elektroniczny obieg dokumentów
System będzie wspierał wszystkie procesy działające w Ministerstwie i podległych mu placówkach dyplomatycznych na całym świecie Projektem i wdrożeniem systemu zajmie się firma Comarch. Wartość podpisanego kontraktu wynosi ponad 15 mln zł.
» Jak zrobić poprawny szablon wiadomości e-mail w formacie HTML
Z uwagi na różnorodność programów do obsługi poczty elektronicznej e-maile w formacie HTML mogą różnie (czasem niestety nieprawidłowo) wyświetlać się w różnych aplikacjach. Zobacz, jak sporządzić szablon wiadomości HTML tak, by e-mail dobrze wyświetlał się w każdym kliencie.
create domain
synopsis
create domain name [as] data_type [ default expression ] [ constraint [ ... ] ] where constraint is: [ constraint constraint_name ] { not null | null | check (expression) }description
create domain creates a new data domain. the user who defines a domain becomes its owner.
if a schema name is given (for example, create domain myschema.mydomain ...) then the domain is created in the specified schema. otherwise it is created in the current schema. the domain name must be unique among the types and domains existing in its schema.
domains are useful for abstracting common fields between tables into a single location for maintenance. for example, an email address column may be used in several tables, all with the same properties. define a domain and use that rather than setting up each table's constraints individually.
| caution |
at present, declaring a function result value as a domain is pretty dangerous, because none of the procedural languages enforce domain constraints on their results. you'll need to make sure that the function code itself respects the constraints. in pl/pgsql, one possible workaround is to explicitly cast the result value to the domain type when you return it. pl/pgsql does not enforce domain constraints for local variables within functions, either. |
parameters
- name
the name (optionally schema-qualified) of a domain to be created.
- data_type
the underlying data type of the domain. this may include array specifiers.
- default expression
the default clause specifies a default value for columns of the domain data type. the value is any variable-free expression (but subqueries are not allowed). the data type of the default expression must match the data type of the domain. if no default value is specified, then the default value is the null value.
the default expression will be used in any insert operation that does not specify a value for the column. if a default value is defined for a particular column, it overrides any default associated with the domain. in turn, the domain default overrides any default value associated with the underlying data type.
- constraint constraint_name
an optional name for a constraint. if not specified, the system generates a name.
- not null
values of this domain are not allowed to be null.
- null
values of this domain are allowed to be null. this is the default.
this clause is only intended for compatibility with nonstandard sql databases. its use is discouraged in new applications.
- check (expression)
check clauses specify integrity constraints or tests which values of the domain must satisfy. each constraint must be an expression producing a boolean result. it should use the name value to refer to the value being tested.
currently, check expressions cannot contain subqueries nor refer to variables other than value.
examples
this example creates the us_postal_code data type and then uses the type in a table definition. a regular expression test is used to verify that the value looks like a valid us postal code.
create domain us_postal_code as text check( value ~ '^\\d{5}$' or value ~ '^\\d{5}-\\d{4}$' ); create table us_snail_addy ( address_id serial not null primary key , street1 text not null , street2 text , street3 text , city text not null , postal us_postal_code not null );
Najskuteczniejsza reklama to pozycjonowanie - Pozycjonowanie stron <= zajrzyj tu i dowiedz się więcej o pozycjonowanie stron