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 41-50 of 300 results.
IDPlCodelangPlGroupPlItemTitleCode 
 
226T-SQLSysteminfoHostnamen ermittelnSELECT HOST_NAME() AS Hostname; -- prints myComputer1 or srvWindows1View Update Delete
227PowerShellSysteminfoHostnamen ermitteln$myHostname = [system.environment]::MachineName; write-host $myHostname; # prints MyComputer1 or srvWindows2View 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
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
209SQLiteDatum, ZeitKalenderwoche eines Datums-- Standard Weeknumber function from SQLite: -- http://www.sqlite.org/lang_datefunc.html SELECT strftime('%W', '2014-08-25') -- The above calculation can lead to an wrong number if you expect an iso calendar week. -- Therefore better: -- http://stackoverflow.com/questions/15082584/sqlite-return-wrong-week-number-for-2013 SELECT (strftime('%j', date('2014-08-25', '-3 days', 'weekday 4')) - 1) / 7 + 1 AS ISOCalendarWeekNumber;View Update Delete
210T-SQLDatum, ZeitKalenderwoche eines Datumsselect DATEPART(ISO_WEEK,CAST('2014-08-25' AS DATE))View Update Delete
207T-SQLDatenbankManuell einen AutoIncrement/Identity/Serial Wert in Tabelle einfügenSET IDENTITY_INSERT myTable ON INSERT INTO myTable(Identity_ID, Value) VALUES (4711, 'Back To The Future...') SET IDENTITY_INSERT myTable OFFView Update Delete