Search
 
SCRIPT & CODE EXAMPLE
 

SQL

number(10 2) in sql means

-- Precision of 10 and a scale of 2
SELECT CONVERT(DECIMAL(10, 2), col_name)

SELECT CONVERT(DECIMAL(10, 2), 2.999999)			-- 3.00
SELECT CONVERT(DECIMAL(10, 2), 12352.334)			-- 12352.33
SELECT CONVERT(DECIMAL(10, 2), 12564258524132.336)	-- Error: data truncation
Comment

what is 1=2 in sql

This type of command is usually used to copy the structure of one table 
to another. In this case, EMPL_DEMO will have the same column structure 
of employees , except for the keys or constraints. The 1=2 always 
evaluates to False which prevents you from copying any of the rows.
Comment

PREVIOUS NEXT
Code Example
Sql :: sql division operator 
Sql :: SQL UNIQUE Constraint 
Sql :: can sqldatareader be null 
Sql :: postgres ERROR: relation "user" does not exist 
Sql :: create table 
Sql :: sql remove duplicates based on column 
Sql :: oracle procedure teamplate 
Sql :: column with prefix in sql 
Sql :: sql except query 
Sql :: like in sql 
Sql :: compare if is null sql 
Sql :: SQL Using Prepared Statements 
Sql :: mysqldump 
Sql :: decimal to integer sql 
Sql :: SQL Equal to Operator 
Sql :: sql limit 
Sql :: oracle sysdba connect as another user 
Sql :: why mongodb is better than sql 
Sql :: oracle change password expiration policy 
Sql :: like sql for second letter of the family name 
Sql :: fonction stockée sql*plus 
Sql :: storing RGBA in mysql db 
Sql :: clauses in mysql 
Sql :: create relationship with betwen two tables in postgersql 
Sql :: product of a column in mysql 
Sql :: QUERY JPQL 
Sql :: database name 
Sql :: python simple crud application using sqlite 
Sql :: sap return 
Sql :: mysql does collate nopad recognize space 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =