Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

t sql if exists multiple conditions

IF EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'X' AND COLUMN_NAME = 'Y') 
AND EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Z' AND COLUMN_NAME = 'A')

BEGIN
    UPDATE [dbo].[X] 
        SET Y= (SELECT inst.[A] FROM [dbo].[Z] s WHERE s.[B] = [dbo].[x].[B]);
END    
GO
Comment

PREVIOUS NEXT
Code Example
Typescript :: apexcharts dataURI style 
Typescript :: What are the components of the environment? Explain it along with the examples. 
Typescript :: body massage centers in kochi 
Typescript :: traits c++ 
Typescript :: generate random numbers in python within a range 
Typescript :: how to make auto conversion of blogger texts with fonts installed in blog theme 
Typescript :: react with typescript 
Cpp :: hello world c++ 
Cpp :: c++ show time elapsed 
Cpp :: qt get hexa value from qstring 
Cpp :: a c++ program to set a countdown timer 
Cpp :: make cin cout faster 
Cpp :: iterator on std::tuple 
Cpp :: npm install error 
Cpp :: c++ chrono get milliseconds 
Cpp :: stoi c++ 
Cpp :: cpp read csv 
Cpp :: cpp how to input a variable without hitting enter 
Cpp :: fill two dimension array c++ 
Cpp :: nth permutation c++ stl 
Cpp :: 3d array in c++ 
Cpp :: xmake run with arg 
Cpp :: c++ throw exception 
Cpp :: print 5 table in c++ 
Cpp :: initialize all elements of vector to 0 c++ 
Cpp :: qlabel set text color 
Cpp :: find character in string c++ 
Cpp :: format c++ discord 
Cpp :: C++ mutex lock/unlock 
Cpp :: c++ unordered_map check if key exists 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =