Search
 
SCRIPT & CODE EXAMPLE
 

SQL

check if table is Temporal

USE /*your db name*/
IF EXISTS (
        SELECT 1
        FROM sys.tables
        WHERE name = 'TABLE_NAME_HERE'
            AND temporal_type = 2
        )
BEGIN
     SELECT 'Yes'
 
END
ELSE
  BEGIN
     
    SELECT 'no'
 
  END

GO
Comment

PREVIOUS NEXT
Code Example
Sql :: mql5 list all available symbols 
Sql :: oracle list user locked 
Sql :: ALTER TABLE CHANGE TABE SPACE ORACLE 
Sql :: select where mysql 
Sql :: how to do an average on a count sql 
Sql :: group by sql not ordering issues 
Sql :: calculer pourcentage mysql 
Sql :: mysql regex phone number 
Sql :: mysql range of dates overlap 
Sql :: sql query order 
Sql :: insert query in oracle 
Sql :: getting customers with no orders sql 
Sql :: one to one and one to many relationship 
Sql :: triggers in mysql example 
Sql :: sql check constraint 
Sql :: how to dump .csv file into mysql 
Sql :: neo4j command to run script file 
Sql :: concatenation in sql 
Sql :: mysql max connections exceeded max_connections_per_hour 
Sql :: what is between keyword used for 
Sql :: above average salary in sql 
Sql :: creating a database sql 
Sql :: duplicate row mysql 
Sql :: oracle sql count occurrences of value in column 
Sql :: mysql date comparison with formatting 
Sql :: SQL SMALLDATETIME Data Type 
Sql :: drop constraint in ms sql 
Sql :: xampp mysql problem detected port 3306 in use by 
Sql :: postgresql multiple insert with subquery 
Sql :: sql like operator 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =