How to set the data type when putting real world data into a data table

Updated on technology 2024-05-26
9 answers
  1. Anonymous users2024-02-11

    It can be created according to the length of the character, each number and space occupies the length of 1, and Chinese occupies 2 Just design by length.

    For example, char(3), char(15), varchar(2), which one to use depends on your text format.

  2. Anonymous users2024-02-10

    It is recommended that you take a look at the database-related tutorials, first of all, char and varchar are not the same, char(20) is a fixed-length string, varchar is a variable-length string, int, double, etc. have their own value ranges, and the definition of fields depends on the size of the data you need to store.

  3. Anonymous users2024-02-09

    char is a fixed-length array, and varchar is a variable-length array. Field A ='123';char(5) = a + two spaces; varchar(5) = a;In other words, it can be changed at will depending on the actual situation of the field. memory size;

  4. Anonymous users2024-02-08

    If you save text, set it to text, and if you save a document directly, you still use binary

  5. Anonymous users2024-02-07

    For example, your table is user

    You can start by creating a class user and putting the data in the database into the user object.

    Then use the collection to store each user object, for example:

    public arraylist findallusers(){arraylist al=new arraylist();

    Query the database in a loop.

    while(..

    string name=...Find out from the database.

    user user=new user();

    .And so on.

    return al;

  6. Anonymous users2024-02-06

    Data types are acceptable.

    However, floating-point, double-precision, integer, note, and general-purpose only apply to table fields.

  7. Anonymous users2024-02-05

    There is nothing that cannot be used, the key is to use the most suitable one.

  8. Anonymous users2024-02-04

    You search on the Internet, under the source code, I have a**.

    Hope you'll find out! I know that the way to store in the database is to convert it to binary data and then write it to the database. As for saving ** as a file, it is a reverse process!

  9. Anonymous users2024-02-03

    Use strings, just save the location.

Related questions
11 answers2024-05-26

This ** is very precious, send it to you!

It is for the purpose of compiling only and the specific content of the database, such as fields, is of no practical significance to you. >>>More

5 answers2024-05-26

Summary. Hello.

1. First of all, open the web page to enter data in the software, and manually enter the filled items in the web form. >>>More

8 answers2024-05-26

Let's start by looking at the raw data. The current data is sorted according to the Name field, and the data of the same person is sorted together in order. The order needs to be shuffled randomly. >>>More

4 answers2024-05-26

dim rs,sql,filename,fs,myfile,objspreadsheet,x

set fs = "") >>>More

13 answers2024-05-26

1. Haha, you don't understand enough about the management methods of modern database software. >>>More