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 211-220 of 300 results.
IDPlCodelangPlGroupPlItemTitleCode 
 
213T-SQLDatenbankDB-Funktion erstellen-- Table-value -- Variant 1 CREATE FUNCTION whichContinent (@country nvarchar(15)) RETURNS TABLE AS RETURN ( SELECT @country AS Country ) -- Variant 2 CREATE FUNCTION whichContinent (@country nvarchar(15)) RETURNS @returnTableResult TABLE ( id int ,currency VARCHAR(100) ) AS BEGIN IF @country='Germany' BEGIN INSERT INTO @returnTableResult VALUES (1,'EURO') END RETURN END View Update Delete
214T-SQLExceptionsTry Catch Except-- See also: http://msdn.microsoft.com/de-de/library/ms175976(v=sql.105).aspx -- !! -- TRY-CATCH cannot be used for all operations/situations in T-SQL. -- Be careful and refer to the link above for details -- !! BEGIN TRY SELECT 1/0; END TRY BEGIN CATCH SELECT ERROR_NUMBER() AS ErrorNumber ,ERROR_SEVERITY() AS ErrorSeverity ,ERROR_STATE() AS ErrorState ,ERROR_PROCEDURE() AS ErrorProcedure ,ERROR_LINE() AS ErrorLine ,ERROR_MESSAGE() AS ErrorMessage; END CATCH; View Update Delete
215PythonStringsReplace# http://www.tutorialspoint.com/python/string_replace.htm str1 = "abc#def" str1 = str1.replace("#",';") print str1 # Output: abc;defView Update Delete
216ORACLE PL/SQLDatum, ZeitAktuelles Datum/Uhrzeit-- if todays date is: 2014-02-02 then a static query would be SELECT TO_DATE('02/02/2014','dd/mm/yyyy') FROM dual -- system variable SELECT SYSDATE AS TODAY FROM SYS."DUAL"View Update Delete
217T-SQLDatenmengenAnzahl Zeilen Resultset begrenzenSELECT TOP 100 * FROM tableAView Update Delete
218MySQLDatenmengenAnzahl Zeilen Resultset begrenzenSELECT * FROM tableA LIMIT 100;View Update Delete
219ORACLE PL/SQLDatenmengenAnzahl Zeilen Resultset begrenzenSELECT * FROM ( SELECT * FROM tableA ) WHERE ROWNUM <= 100View Update Delete
220T-SQLStringsPosition eines Teilstrings findenDECLARE @searchFor_Charindex Varchar(10) DECLARE @searchFor_Patindex Varchar(10) DECLARE @text Varchar(100) SET @searchFor_Charindex = 'simple' SET @searchFor_Patindex = '%simple%' -- Remember the %. Patindex can also be used for RegEx! SET @text = 'this is a simple text' SELECT CHARINDEX(@searchFor_Charindex, @text) AS Position_Charindex SELECT PATINDEX(@searchFor_Patindex, @text) AS Position_Patindex -- 11View Update Delete
221DelphiStringsPosition eines Teilstrings findensearchFor:='simple'; text:='this is a simple text'; ShowMessage(IntToStr(pos(searchFor,text))); // 11View Update Delete
222MySQLDatenbankNULL Wert eines Feldes übersteuernSELECT IFNULL(MyColumn1, 1) AS MyColumnWithoutNULL;View Update Delete