Position: Home page » Currency » Database field type of digital currency

Database field type of digital currency

Publish: 2021-05-09 11:52:13
1. The currency data type is equivalent to the numeric data type with what attributes
access allows nine data types: text, remarks, numeric value, date / time, currency, auto numbering, yes / no, OLE object, hyperlink and Query Wizard. In the design view of a table, each field has a design type

text: this type allows a maximum of 255 characters or numbers. The default size of access is 50 characters, and the system only saves the characters entered into the field, not the empty characters in the unused position in the text field. You can set the field size property to control the maximum length of characters that can be entered

note: this type is used to store long text and numbers. It allows fields to store up to 64000 characters. But access can't sort or index the memo field, but it can sort and index the text field. Although the text can be searched in the note field, it is not as fast as in the indexed text field

number: this field type can be used to store digital data for arithmetic calculation. Users can also set the "field size" attribute to define a specific number type. Any font type specified as a digital data type can be set to "byte", "integer", "long integer", "single precision number", "double precision number", "synchronous ID", etc There are five types of decimal. In access, the default is double

date / time: this type is used to store date, time or date time together. Each date / time field needs 8 bytes of storage space.
2.

Currency field types generally include int, float, money / smallmoney, decimal / numeric

select according to the accuracy of the stored data:

int can only store integer money

The

money / smallmoney data types are accurate to one ten thousandth of the monetary unit they represent

decimal / numberic can customize the decimal places and the data precision that can be stored, so generally more people use this type

float is not suitable for currency which needs precise value

conclusion:

it is best to use money and decimal types in finance

if it is a simple calculation, the float type can be used, but the data fetched by the float type on some platforms is not so accurate, and the accuracy may be lost. Therefore, if the cost is not great in a stable performance platform, it is recommended to use the above two types

extended data:

SQL data type:

1, bit integer

bit data type is integer, its value can only be 0, 1 or null. This data type is used to store data with only two possible values, such as yes or no, true or false, on or off.

note: it is a data type that saves a lot of space. If it can meet the requirements, it should be used as much as possible

The

2, tinyint integer

tinyint data type can store integers from 0 to 255. It's useful when you're only going to store a limited number of values. This data type occupies 1 byte in the database

The

3, smallint integer

smallint data type can store integers from the 15th power (- 32768) of - 2 to the 15th power (32767) of 2. This kind of data type is very useful for storing some numerical data which is often limited in a specific range. This data type takes up two bytes of space in the database

The

4, int integer

int data type can store integers from the 31st power of - 2 (- 2147483648) to the 31st power of 2 (2147483647). Almost all numerical data stored in the database can use this data type. This data type takes up four bytes in the database

The

5, decimal precise numerical type

decimal data type can be used to store numerical data with fixed precision and range from - 10 to - 10. When using this data type, you must specify the range and precision. The range is the total number of digits that can be stored around the decimal point. Precision is the number of digits stored to the right of the decimal point

Numerical data type is similar to decimal

7, smallmoney

smallmoney data type is used to represent money and monetary value. This data type can store data from - 214748.3648 to 214748.3647, accurate to one ten thousandth of the monetary unit

8, money type

money data type is used to express money and monetary value. This data type can store data from - 922 billion to 922 billion, accurate to one ten thousandth of the monetary unit

9, float approximate value type

float data type is an approximate value type for floating-point numbers. Floating point numbers are approximate because not all numbers in their range can be expressed accurately. Floating point numbers can be any number from - 1.79e + 308 to 1.79e + 308

10, real approximate value

real data type is similar to floating-point number, it is approximate value type. It can represent floating-point numbers with values between - 3.40e + 38 and 3.40e + 38

3. Let's take a look at the differences between these formats, as shown in the following table:

Settings
description
examples

regular numbers (default values) display the input numbers as they are. 3456.789
thousand separator is used for currency; For negative number, decimal, currency symbol and decimal point position, follow the settings in Windows control panel. ¥ 3457
the euro uses the euro symbol (#8364;), The currency symbol specified in Windows regional settings is not considered&# 8364; 3456.79
at least one digit will be displayed. For negative numbers, decimals, currency symbols and decimal places, follow the settings in the windows "control panel". 3456.79
the standard uses thousands separator; For negative numbers, decimal symbols, and decimal point positions, follow the settings specified in the windows locale. 3456.79
percent multiplied by 100 plus percent sign (%); For negative number, decimal, currency symbol and decimal point position, follow the settings in Windows control panel. 123.00%
the standard scientific counting method was used. 3.46E+03
4. There are oil pans under the diesel engine of the excavator. You can go down to see if there is a bolt or valve under the engine
5. This is not a rotary motor. Behind the big arm is a rotary motor. There is an oil dipstick. Pull it down and have a look. There is also a gear oil filling machine. There are valves and pipes under the motor, which can discharge gear oil. Add butter in the large plate. Wipe it clean and you can see it. Open the screw and remove the iron cap to add butter. Before adding butter, go to the bottom of the car. There is a grease hole under the large plate, which is sealed with the iron cap. Open the iron cap and reach out to get butter. It's a lot of work.
6. Most of them are put from the bottom of the hydraulic oil tank. When refueling, pay attention to bleed from the hydraulic pump
7. Is the app investment platform with business license and financial license true and reliable? Not necessarily. There are plenty of loopholes in policy.
8. The hydraulic oil of the rotary motor does not need to be drained or added. The gear oil of the rotary recer under the motor can be drained or added.
9. Rotation is gear oil! It can be added to the rotary motor.
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750