About 427,000 results
Open links in new tab
  1. Add-Equals operator - Andy M Mallon - AM²

    May 24, 2016 · SQL Server 2008 introduced an Add-Equals operator (+=) to T-SQL. Somehow, this hidden gem slipped past me. That whole “@sql = @sql +” nonsense can be made a lot easier to read. DECLARE @sql varchar(4000); SET @sql = 'SELECT Col001 FROM [table] '; SET @sql += ' WHERE 1=2;'; -- Concatenation operator SELECT @sql;

  2. Addition Assignment) (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 22, 2024 · Adds two numbers and sets a value to the result of the operation. For example, if a variable @x equals 35, then @x += 2 takes the original value of @x, add 2 and sets @x to that new value (37). Transact-SQL syntax conventions. …

  3. SQL Operators - W3Schools

    Add equals-= Subtract equals *= Multiply equals /= Divide equals %= Modulo equals &= Bitwise AND equals ^-= Bitwise exclusive equals |*= Bitwise OR equals

  4. = (Equals) (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 22, 2024 · The following example uses the Equals (=) and Not Equal To (<>) comparison operators to make comparisons with NULL and nonnull values in a table. The example also shows that IS NULL is not affected by the SET ANSI_NULLS setting.

  5. Stairway to T-SQL: Beyond The Basics Level 8: Coding Shortcuts

    Aug 25, 2010 · To help with minimizing the number of characters a T-SQL developer needs to type the Microsoft team introduced three new shortcuts operators when they release SQL Server 2008. These shorts cuts are...

  6. Compound Operators (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 22, 2024 · Compound operators execute some operation and set an original value to the result of the operation. For example, if a variable @x equals 35, then @x += 2 takes the original value of @x, add 2 and sets @x to that new value (37). Transact-SQL provides the following compound operators:

  7. sql-docs/docs/t-sql/language-elements/add-equals-transact-sql

    Mar 16, 2017 · [!INCLUDE sql-asdb-asdbmi-asa-pdw-fabricse-fabricdw] Adds two numbers and sets a value to the result of the operation. For example, if a variable @x equals 35, then @x += 2 takes the original value of @x, add 2 and sets @x to that new value (37).

  8. SQL Operators: 6 Different Types (w/ 45 Code Examples) - Dataquest

    Sep 24, 2022 · += (Add equals) The += operator will add a value to the original value and store the result in the original value. The below example sets a value of 10, then adds 5 to the value and prints the result (15).

  9. T-SQL Compound Operators - TSQL.info - T-SQL Tutorial

    Compound Operators TSQL Tutorial: Add Equals, Subtract, Multiply, Divide, Modulo

  10. SQL Operators With Example-Aimtocode

    Examine both operands value that are equal or not,if yes condition become true. This is used to check the value of both operands equal or not,if not condition become true. Logical operators in SQL are used to perform logical operations on the given expressions in SQL statements.

  11. Some results have been removed
Refresh