Search results
6 wrz 2010 · I want to convert a value from bigint to datetime. For example, I'm reading the HISTORY table of teamcity server. On the field build_start_time_server, I have this value on one record 1283174502729. How can I convert it to a datetime value? I changed the tags to hopefully make them more specific.
22 lis 2022 · SQL Server provides int, bigint, smallint and tinyint data for storing exact-number data. In this article, we will focus on int and bigint data types. SQL Server data types define the kind of data that can be stored in the table: integer data, character data, monetary data, date and time data, binary strings, and so on.
23 maj 2023 · Starting with GETDATE() values, this example displays the current date and time, uses CAST to change the current date and time to a character data type, and then uses CONVERT to display the date and time in the ISO 8601 format.
28 maj 2024 · CONVERT gives you the ability to format, whereas the ISO Compliant CAST function does not. We'll look at several examples of using the SQL CONVERT function to convert and optionally format date, datetime, string, and integer data types. Here are some reasons you might use the CONVERT function:
In MySQL there are three main data types: string, numeric, and date and time. A FIXED length string (can contain letters, numbers, and special characters). The size parameter specifies the column length in characters - can be from 0 to 255. Default is 1. A VARIABLE length string (can contain letters, numbers, and special characters).
13 lis 2023 · SQL Server provides a number of options you can use for formatting a date/time string in SQL queries and stored procedures either from an input file (Excel, CSV, etc.) or a date column (datetime, datetime2, smalldatetime, etc.) from a table.
25 wrz 2020 · Following are commonly used data types organized by category with a brief description, range of values, storage size, and an example. DECLARE @MyInt int = 0. SET @MyInt += 1. SELECT @MyInt AS [MyInt] . DECLARE @MyBigInt bigint = 2147483648. SELECT @MyBigInt AS [MyBigInt] DECLARE @MySmallInt smallint = 32000.