About 13,900 results
Open links in new tab
  1. mysql - INT (5) vs SMALLINT (5): numbers in parenthesis after the ...

    Jan 30, 2018 · In MySQL table definitions is there a different between INT (5) and SMALLINT (5)? Or do they both represent the same size?

  2. SQL Data types and SmallInt/TinyInt vs Regular Integer

    Sep 25, 2017 · What are the SQL Server benefits of using proper data types? Example: SmallInt/TinyInt vs Regular Integer Decimal (2) vs float Varchar (100) vs char (100) Will it …

  3. When to use TINYINT over INT? - Database Administrators Stack …

    However, the only reason I know for doing this is for storage purposes--using 1 byte on a row instead of 4 bytes. What are the impacts of using tinyint (or smallint or even bigint) over just …

  4. sql server - Convert SmallInt to Datetime - Database …

    A smallint data type uses the msb (most significant bit) to indicate the sign of the value. The range of values, therefore, is -2^15 (-32,768) to 2^15-1 (32,767).

  5. Is there a performance benefit to use tinyint instead of int for ...

    Jul 18, 2018 · It's not. I know the difference between data types. But need to know if there is a performance benefit to use tinyint as Primary Key

  6. sql server - char or smallint for a column with numeric codes ...

    Oct 25, 2020 · The document says, smallint data type storage size is 2 Bytes and char(n) data type storage size is every character equal to 1 byte. The data type size consequently will affect …

  7. MySQL Cast to TINYINT - Database Administrators Stack Exchange

    Jun 1, 2020 · The syntax for CAST () is CAST(expr AS type [ARRAY]). You got the syntax right but you were unable to do the cast because TINYINT is not among the list of permitted values …

  8. aggregate - SQL Server returns "Arithmetic overflow error …

    May 23, 2017 · You'll need to complete a few actions and gain 15 reputation points before being able to upvote. Upvoting indicates when questions and answers are useful. What's reputation …

  9. Are there any reasons to not use smallint when it fits the data?

    Since PostgreSQL doesn't have 1-byte tinyint, the second best option would be smallint. However, I've read from various posts* that it may actually be slower because CPU's are …

  10. datatypes - Using PostgreSQL what is the difference between a …

    Dec 1, 2016 · What is the difference between the smallint type and the bool type for storing boolean values? This question arose in the comments to a question on Geographic …