About 3,700 results
Open links in new tab
  1. int, bigint, smallint, and tinyint (Transact-SQL) - SQL Server

    Nov 18, 2025 · Exact-number data types that use integer data. To save space in the database, use the smallest data type that can reliably contain all possible values. For example, tinyint would be …

  2. integer Max value constants in SQL Server T-SQL?

    Are there any constants in T-SQL like there are in some other languages that provide the max and min values ranges of data types such as int?

  3. Integer Max Value Constants in SQL Server T-SQL: How to Use Data …

    Dec 17, 2025 · SQL Server offers several integer data types, each with fixed storage sizes (in bytes) and distinct min/max value ranges. Knowing these ranges is critical for avoiding overflow errors and …

  4. SQL Server Max Int Value

    Jul 29, 2009 · The maximum values for an integer in SQL Server are: -2147483648 through 2147483647. And the byte size is 4 bytes. Other maximum values: SELECT @max = 127, @min = 1. …

  5. SQL MAX () Function - W3Schools

    The SQL MAX () Function The MAX() function returns the largest value of the selected column. The MAX() function works with numeric, string, and date data types.

  6. 13.1.2 Integer Types (Exact Value) - INTEGER, INT, SMALLINT ... - MySQL

    As an extension to the standard, MySQL also supports the integer types TINYINT, MEDIUMINT, and BIGINT. The following table shows the required storage and range for each integer type.

  7. SQL MAX Examples and Use Cases - SQL Server Tips

    May 5, 2022 · Learn about the SQL MAX () function in SQL Server to find the maximum values in a result set along with several examples of using SQL MAX ().

  8. SQL Server INT Data Types: BIGINT, INT, SMALLINT, TINYINT

    This tutorial introduces you to the SQL Server integer data types and shows you how to use them effectively to store integer values in the database.

  9. SQL Server INT Data Type - GeeksforGeeks

    Jul 23, 2025 · But if we need to store values above 255 then, based on the largest possible value, the other data type should be used. Below is the table of all INT data types and the range of values it will …

  10. Max Integer Values for SQL Server Numeric Data Types

    In order to summarize max int value for tinyint integer data type is 255. And tinyint integer can not be negative. Minimum value for tinyint is 0. Smallint integer data type is two-byte in size and can keep …