About 688,000 results
Open links in new tab
  1. Convert a string to int using sql query - Stack Overflow

    Apr 8, 2009 · How to convert a string to integer using SQL query on SQL Server 2005?

  2. Convert Month Number to Month Name Function in SQL

    Oct 9, 2008 · This is a good piece of information, but fails to actually answer the question of how to convert a month number to a month name (Rather answers how to get a month name from a date). …

  3. sql - TSQL - Cast string to integer or return default value - Stack ...

    Is there a way in T-SQL to cast an nvarchar to int and return a default value or NULL if the conversion fails?

  4. mysql - SQL order string as number - Stack Overflow

    Mar 10, 2017 · I have numbers saved as VARCHAR to a MySQL database. I can not make them INT due to some other depending circumstances. It is taking them as character not as number while …

  5. sql - How do I convert a number to a numeric, comma-separated …

    Is there an easy way to convert a number (in my case an integer) to a comma separated nvarchar string? For instance, if I had an int value of 1000000 stored in a field, how can I convert it to an …

  6. How to convert or cast int to string in SQL Server

    May 8, 2019 · To convert the type of the column you have to migrate the schema of this table. To convert the values in the cells of this column you have to migrate the data. Look into the …

  7. ORACLE - String to number - Stack Overflow

    Oct 25, 2012 · SELECT TO_NUMBER('123.45', '999.99') I'm resorting to these belabored examples because I can't point to Oracle documentation that explains what the format code actually does in the …

  8. Convert month name to month number in SQL Server

    In T-SQL what is the best way to convert a month name into a number? E.g:

  9. Access SQL convert table field text into number

    Mar 23, 2023 · One column hat the format text but I need it in long integer. current SQL: alter table [IT9001] alter column [numbers] LONG; After this the field type is long integer, but the numbers are …

  10. sql server - SQL query: how to convert data to numbers only when it ...

    Jun 22, 2023 · While extracting ERP products' references from SQL server, it is extracted as text. These references sometimes contains only numbers, and sometimes it contains numbers + the letters CN. I …