Search
 
SCRIPT & CODE EXAMPLE
 

SQL

float in sql

#Float is a data type which stores only decimal value. The difference between integer
#and float is that in an integer the value will be rounded off
#whereas in float the decimal value will be shown as the input.

#for example 3.54 stored in float will give an output of 3.54
#whereas 3.54 sotred in integer data type will give an output of 4

code:
create table salary(name varchar(20), Salary float);


#when inserting values, the need for using ''   is mandatory just like in the case of
#integer
Comment

PREVIOUS NEXT
Code Example
Sql :: sum query in sql 
Sql :: t-sql create trigger 
Sql :: get foreign table names mysql 
Sql :: select 2 rows in sql 
Sql :: How to check if the column exists in sql table 
Sql :: psql select database 
Sql :: Cast for print sql 
Sql :: sql counter column 
Sql :: sql date format dd-mm-yyyy 
Sql :: python mysql query where 
Sql :: python sqlite3 update 
Sql :: Create table Statement Syntax in SQL Server 
Sql :: version and edition of SQL Server Database Engine 
Sql :: if in mysql 
Sql :: mysql regexp match word 
Sql :: alter column set not null to null postgres 
Sql :: how to check table name in current database sql 
Sql :: ERROR 3948 (42000): Loading local data is disabled; this must be enabled on both the client and server sides 
Sql :: sql query to select even numbers 
Sql :: com.mysql.cj.exceptions.InvalidConnectionAttributeException more than one time zone. You must configure either the server or JD value if you want to utilize time zone support. 
Sql :: mysql delete data in table 
Sql :: oracle convert run duration to number 
Sql :: delete data from database sqlite android 
Sql :: how to find special characters in sql 
Sql :: list table columns mysql 
Sql :: sql server list database 
Sql :: encrypt and decrypt in sql server 
Sql :: default password for mysql_secure_installation in mac 
Sql :: select from select sql server 
Sql :: postgres extract time from timestamp 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =