Yahoo Poland Wyszukiwanie w Internecie

Search results

  1. 3 wrz 2024 · Imposes conditions on the execution of a Transact-SQL statement. The Transact-SQL statement that follows an IF keyword and its condition is executed if the condition is satisfied: the Boolean expression returns TRUE.

  2. 15 wrz 2008 · The CASE statement is the closest to IF in SQL and is supported on all versions of SQL Server. SELECT CAST ( CASE WHEN Obsolete = 'N' or InStock = 'Y' THEN 1 ELSE 0 END AS bit) as Saleable, * FROM Product. You only need to use the CAST operator if you want the result as a Boolean value.

  3. 28 maj 2024 · We can use either a CASE statement or an IIF() function to implement IF-THEN logic in SQL. In this tutorial, we’ll explore how to implement IF-THEN logic in SQL across various dialects such as SQL Server, MySQL, and PostgreSQL.

  4. 21 maj 2024 · Imposes conditions on the execution of a Transact-SQL statement. The Transact-SQL statement (sql_statement) following the boolean_expression is executed if the boolean_expression evaluates to TRUE. The optional ELSE keyword is an alternate Transact-SQL statement that is executed when boolean_expression evaluates to FALSE or NULL.

  5. 12 wrz 2022 · I'm learning T-SQL and need to know how to use an IF statement to include conditional statements within a stored procedure, function, trigger, or script in Microsoft SQL Server.

  6. The IF...ELSE statement is a control-flow statement that allows you to execute or skip a statement block based on a specified condition. The IF statement. The following illustrates the syntax of the IF statement: IF boolean_expression . BEGIN . { statement_block } END Code language: SQL (Structured Query Language) (sql)

  7. 30 lis 2019 · Instrukcję IF THEN ELSE w SQL Server możemy używać w T-SQL m. in. w blokach anonimowych, procedurach, funkcjach, triggerach. Składnia T-SQL If Then Else wygląda następująco:--tomaszkenig.pl IF Boolean_expression_1 {...polecenie wykonywane, gdy warunek_1 jest spełniony - ma wartość TRUE...}

  1. Ludzie szukają również