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 :: mysql dump structure only 
Sql :: date on sql 
Sql :: Truncate a table then insert data 
Sql :: how to declare variable date in mysql 
Sql :: take sql dump in to file 
Sql :: order by in codeigniter query builder 
Sql :: postgresql create table add unique constraints 
Sql :: copy data from one database to another 
Sql :: REMOVE DATE FROM DATE TIME SQL SERVER 
Sql :: postgres create trigger if not exists 
Sql :: insert command in sql 
Sql :: how to fetch data from database without last column 
Sql :: how to install mssql on mac 
Sql :: connectionString 
Sql :: sql cross apply vs join 
Sql :: inserting values in sql 
Sql :: what is table in sql 
Sql :: cast in sql server 
Sql :: cannot connect to mysql server 10060 
Sql :: how to start postgresql laravel 
Sql :: xampp reset mysql 
Sql :: mysql select empty string 
Sql :: what is auto increment in sql 
Sql :: select sql 
Sql :: what is ssrs and ssis in sql server 
Sql :: sql where statement 
Sql :: iterative instruction sql 
Sql :: how to check rollback status in oracle 
Sql :: SQL MAX() and MIN() with Strings 
Sql :: reorder primary key sql 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =