About 44,700 results
Open links in new tab
  1. sql server - T-SQL Cast versus Convert - Stack Overflow

    Apr 1, 2009 · What is the general guidance on when you should use CAST versus CONVERT? Is there any performance issues related to choosing one versus the other? Is one closer to ANSI …

  2. select - Convert INT to VARCHAR SQL - Stack Overflow

    Nov 14, 2013 · CONVERT(DATA_TYPE , Your_Column) is the syntax for CONVERT method in SQL. From this convert function we can convert the data of the Column which is on the right …

  3. sql - Efficiently convert rows to columns - Stack Overflow

    I'm looking for an efficient way to convert rows to columns in SQL Server, I heard that PIVOT is not very fast, and I need to deal with lot of records. This is my example: Id Value ColumnName …

  4. Convert Date format into DD/MMM/YYYY format in SQL Server

    Jun 25, 2013 · I have a query in SQL, I have to get a date in a format of dd/mm/yy Example: 25/jun/2013. How can I convert it for SQL server?

  5. sql - how to convert date to a format `mm/dd/yyyy` - Stack Overflow

    Sep 2, 2013 · I'm having a sql table with date column named CREATED_TS which holds the dates in different format eg. as shown below Feb 20 2012 12:00AM 11/29/12 8:20:53 PM Feb …

  6. Convert a SQL Server datetime to a shorter date format

    Oct 27, 2010 · 11 In addition to CAST and CONVERT, if you are using Sql Server 2008, you can convert to a date type (or use that type to start with), and then optionally convert again to a …

  7. How to convert a datetime to string in T-SQL - Stack Overflow

    Feb 22, 2013 · In addition to the CAST and CONVERT functions in the previous answers, if you are using SQL Server 2012 and above you use the FORMAT function to convert a DATETIME …

  8. sql - Convert date to number data type - Stack Overflow

    Aug 27, 2020 · I am trying to convert date to number like below, not sure which function works better. Database used is SQL Server. Table details create table test ( id varchar(255), …

  9. How to convert text column to datetime in SQL - Stack Overflow

    May 21, 2013 · How do I convert it to a datetime format like this: "2013-05-21 09:45:48.000" If you're looking for a specific format, you misunderstand how datetime columns work. They …

  10. How to convert SQL Query result to PANDAS Data Structure?

    44 If you are using SQLAlchemy's ORM rather than the expression language, you might find yourself wanting to convert an object of type sqlalchemy.orm.query.Query to a Pandas data …