Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 8 gru 2016 · If I understand the question correctly, you want the equivalent of decode but in T-SQL. Select YourFieldAliasName = CASE PC_SL_LDGR_CODE WHEN '02' THEN 'DR' ELSE 'CR' END

  2. 23 kwi 2011 · One of the readers of the blog has sent me a question regarding how to use the DECODE function in SQL Server. SELECT DECODE(Letters, 'First',1, 'Second',2, 'Third',3, 0) AS LN. FROM LettersTable. In SQL Server the equivalent code is CASE statement. Here are the examples regarding how DECODE can be written in SQL Server.

  3. 27 sty 2015 · I have a column in SQL Server with utf8 SQL_Latin1_General_CP1_CI_AS encoding. How can I convert and save the text in ISO 8859-1 encoding? I would like to do thing in a query on SQL Server.

  4. www.sqltutorial.org › sql-comparison-functions › sql-decodeSQL DECODE - SQL Tutorial

    SELECT DECODE (3, 1, 'Equal 1,', 2, 'Equal 2', 'Not Equal 1 or 2'); Code language: SQL (Structured Query Language) (sql) This example works like the following IF-THEN-ELSEIF-ELSE statement: IF 3 = 1 THEN RETURN 'Equal 1'; ELSE IF 3 =2 THEN RETURN 'Equal 2'; ELSE RETURN 'Not Equal 1 or 2'; END IF ; Code language: SQL (Structured Query Language ...

  5. 20 lis 2017 · I have a varchar column in a table in SQL Server that holds a Base64-encoded text string, which I would like to decode into its plain text equivalent. Does SQL Server have any native functionality to handle this type of thing?

  6. DECODE allows you to compare a value to a set of possible values and return a corresponding result when a match is found. It is often used for data transformation, simplifying complex CASE statements, and providing concise value substitution based on specific conditions.

  7. 21 lut 2019 · I'm tempted in just writing a bunch of REPLACE statements in a function but I'm wondering if there's a better way. CREATE FUNCTION dbo.itvfURLDecode. (. @StringValue VARCHAR(MAX) ) RETURNS TABLE. AS. RETURN (. SELECT REPLACE(REPLACE(@StringValue,'%2B','+'),'%20',' ') /* etc..*/.

  1. Ludzie szukają również