About 4,940,000 results
Open links in new tab
  1. How should I model a field that can contain both numeric and string ...

    Sep 9, 2015 · A good way to get the query support you want is to have two columns: numvalue that stores a number and textvalue that stores characters. They should be nullable or at least have some default that represents no value. Your application can then decide which column to store its value and which to leave with no value.

  2. Theory of storing a number and text in same SQL field

    Apr 4, 2009 · Have both a varchar column for the text, and an int column for the number. Use a view to hide the differences, and to control the sorting if necessary. You can coalesce the two columns together if you don't care about whether you're looking at numbers or text.

  3. sql - What data type should I use for both letters and numbers in …

    It will have to be a text data type if you intend to include letters. You have no choice in most databases. You need to use a string. I would recommend varchar() of some sort. Some databases support a "variant" type that can hold different types. To be honest, this is very rarely used.

  4. SQL Data Types for MySQL, SQL Server, and MS Access - W3Schools

    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).

  5. 6 Ways to Concatenate a String and a Number in SQL Server

    This article presents six ways to concatenate strings with numbers using T-SQL. The CONCAT() Function The most obvious (and possibly the best) way to concatenate a string and a number is to use the CONCAT() function.

  6. Cast a number to a string using SQL - Esri Support

    Apr 25, 2020 · This article provides a sample of how to cast the number field to a string for a SQL operation. This code casts the number field "SQLNUM" as a text field, which can then be used in a text operation. The following is an example of how it can be implemented to combine a text field and an number field in a SQL operation.

  7. Access join...text field and number field. - Microsoft Community

    The join field is an identity field in SQL (number) but in Sharepoint the field is formatted as single line text (because t hey didn't like the comma). Unfortunately this causes a data missmatch in the query. I have tried to convert the text value to int in the query join with no success. I have tried the query builder as well as SQL view.

  8. mixing numeric and text data in a single column

    Jan 26, 2011 · I'm perfectly ok with storing a number in a text field if its not goingto be used in calculations, not the case here. You can break up queries like that by doing the IsNumeric query to...

  9. How to load numeric and string data into SQL table

    May 12, 2021 · You have to define the source and target colums as string / varchar /D_STR data type. You may use SSIS package to load the data into SQL table. The Data Conversion transformation could convert the data in an input column to a different data type and then copies it to a new output column.

  10. Add Space between text and number in same field

    Oct 29, 2010 · I need to add a space between the text and number. Sometimes there is not a text/number in the field and there isn't a fixed text/number length. Does anyone know of a way to add this...

  11. Some results have been removed