Top "Sqldatatypes" questions

Concerns data types used with SQL.

Is there any difference between integer and bit(n) data types for a bitmask?

I am working with a table in a PostgreSQL database that has several boolean columns that determine some state (e.…

postgresql sqldatatypes bitmask postgresql-9.0
How can I modify an existing column's data type?

One of the columns in a somewhat large table (~10,000 records) is of the data type DECIMAL(10,0). I'm using MySQL. I'd …

mysql types sqldatatypes
SQL server Varchar(max) and space taken

If varchar(max) is used as the datatype and the inserted data is less than the full allocation, i.e. …

sql-server sqldatatypes varcharmax
Tinyint(byte),SmallInt(Int16) not compatible with Enum in EF5

Using Database first design and having tinyint (or smallint) column: [MyEnumColumn] [tinyint] NOT NULL I mapped this column to Enum …

entity-framework-5 sqldatatypes
Differences between ROWTYPE, TYPE, and RECORD in postgresql?

What is the use of the following declarations, and where will we use these types of declarations? myrow tablename%ROWTYPE; …

postgresql plpgsql rdbms sqldatatypes
MySQL Data Type to Store Negative Number

I have a rating system that ranges from -1 to 5 through 0. So i need to store the following values -1 0 1 2 3 4 5 …

mysql sqldatatypes negative-number
Benchmark: bigint vs int on PostgreSQL

I want to increase my database performance. In a project, all tables went from int to bigint, which I think …

performance postgresql int sqldatatypes bigint
Column type for ZipCode in PostgreSQL database?

What is the correct column type for holding ZipCode values in PostgreSQL database?

postgresql zipcode sqldatatypes
in sql server what is the difference between user_type_id and system_type_id in sys.types

What is the difference between user_type_id and system_type_id in the view of sys.types in sql …

sql-server sqldatatypes