Manage PlItems

You may optionally enter a comparison operator (<, <=, >, >=, <> or =) at the beginning of each of your search values to specify how the comparison should be done.

Advanced Search
Displaying 71-80 of 300 results.
IDPlCodelangPlGroupPlItemTitleCode 
 
147PL/pgSQLDatum, ZeitJahr aus Datum extrahierenselect extract(year from now())View Update Delete
148PL/pgSQLStringsStrings miteinander verbinden-- Bei PL/pgSQL sollte man die Funktion concat verwenden. -- Felder verbinden mit || kann zu NULL im Ergebnisfeld führen SELECT field_a ,field_b ,NULL as field_c ,concat(field_a, field_b, field_c) as together FROM table_1 View Update Delete
150PL/pgSQLDatenbankDB-Funktion erstellenCREATE OR REPLACE FUNCTION whichContinent(country TEXT) RETURNS character varying AS $BODY$ DECLARE returnValue character varying; BEGIN SELECT INTO returnValue CASE country WHEN 'ARGENTINA' THEN 'SOUTH AMERICA' WHEN 'BELGIUM' THEN 'EUROPE' WHEN 'BRAZIL' THEN 'SOUTH AMERICA' WHEN 'CANADA' THEN 'NORTH AMERICA' WHEN 'DENMARK' THEN 'EUROPE' WHEN 'FINLAND' THEN 'EUROPE' WHEN 'FRANCE' THEN 'EUROPE' ELSE 'UNKNOWN' END; RETURN returnValue; END; $BODY$ LANGUAGE PLPGSQL;View Update Delete
152PL/pgSQLDatenbankAutomatisch hochzählendes FeldCREATE TABLE myTable ( id SERIAL, field1 varchar(100) )View Update Delete
153PL/pgSQLDatum, ZeitAktuelles Datum/UhrzeitSELECT now();View Update Delete
154PL/pgSQLDatenbankErstellen und Befüllen Tabelle aus QueryDROP TABLE myTable; CREATE TABLE myTable AS SELECT * FROM mySecondTable;View Update Delete
156PL/pgSQLDatum, ZeitMonat aus Datum extrahieren-- You get the local name for the spoken month name SELECT to_char(now(), 'TMMonth') -- results in german to "Januar" or "Dezember" (= "January", "December")View Update Delete
157PL/pgSQLDatum, ZeitErster und letzter Tag des Monats ermittelnselect date_trunc('month', now()) -- first day in month select date_trunc('month', now()) + interval '1 month - 1 day' -- last day in month View Update Delete
181PL/pgSQLDatenbankNULL Wert eines Feldes übersteuernSELECT COALESCE(MyColumn1, 1.0) AS MyColumnWithoutNULL;View Update Delete
208PL/pgSQLDatenbankTabelleinhalt DB übergreifend kopieren-- siehe auch: http://stackoverflow.com/questions/6083132/postgresql-insert-into-select -- in DestinationDB do: INSERT INTO Table1 SELECT id, valuefield FROM dblink('dbname=SourceDB', 'SELECT id, valuefield FROM Table1') AS t(id integer, valuefield varchar(100)); View Update Delete