Introduction to access common fields

The following is a description of common fields in the access database:
BINARY - each character occupies 1 byte. Any type of data can be stored in this type in the field. No data conversion (for example, to text) is performed. How data is input into a binary field is displayed as output
BIT - 1 byte with values of Yes and No, and the field can only take one of these two values.
TINYINT - 1 byte integer value between 0 and 255.
MONEY - 8 bytes Adjustable integer between –922,337,203,685,477.5808 and 922,337,203,685,477.5807.
DATETIME (see DOUBLE) – 8 bytes A date or time value between the years 100 and 9999.
UNIQUEIDENTIFIER - 128 bits A unique identification number used for remote procedure calls.
REAL —— 4 bytes single-precision floating point value, negative values from – 3.402823E38 to – 1.401298E-45, positive values from 1.401298E-45 to 3.402823E38, and zero.
FLOAT - 8 bytes double precision floating point value, negative values from - 1.79769313486232E308 to - 4.94065645841247E-324, positive values from 4.94065645841247E-324 to 1.79769313486232E308, and zero .
SMALLINT - 2 bytes short integer between – 32,768 and 32,767.
INTEGER - 4 bytes long integer between – 2,147,483,648 and 2,147,483,647.
DECIMAL - 17 bytes Exact numeric data type, ranging from 1028 - 1 to - 1028 - 1. You can define the precision (1 - 28) and size (0 -- defines the precision). The default precision and size are 18 and 0 respectively.
TEXT — 2 bytes per character (see Note) Zero to maximum 2.14 gigabytes (GB).
IMAGE - as needed from zero to a maximum of 2.14 gigabytes. Used for OLE objects.
CHARACTER——Each character occupies 2 bytes (see "Note") From zero to 255 characters
In the Java programming language, how to create Access fields.
●BINARY (binary type): If you manually create table fields in Access, you cannot find this type. There are two keywords for creating this data field using Java language programming: BINARY and VARBINARY. You can choose any one.
●BIT (yes/no type): There are 4 keywords to use Java language programming to create this data field: BIT, LOGICAL, LOGICAL1, YESNO, you can choose any one.
●TINYINT (number, byte type): There are two programming keywords: INTEGER1, BYTE, you can choose any one.
●MONEY (currency type): There are two programming keywords: MONEY and CURRENCY. You can choose any one.
●DATETIME (date/time type): There are 4 programming keywords: DATETIME, DATE, TIME, TIMESTAMP, you can choose any one.
●UNIQUEIDENTIFIER (numeric synchronous copy ID type): There is 1 programming keyword: GUID.
●REAL (numeric single precision type): There are 4 programming keywords: REAL, SINGLE, FLOAT4, IEEESINGLE, you can choose any one.
●FLOAT (numeric double precision type): There are 6 programming keywords: NUMERIC, FLOAT, DOUBLE, FLOAT8, IEEEDOUBLE, NUMBER. You can choose any one.
SMALLINT (numeric integer type): There are three programming keywords: SMALLINT, SHORT, INTEGER2, you can choose any one.
●INTEGER (numeric long integer type): There are 4 programming keywords: INTEGER, LONG, INT, INTEGER4, you can choose any one. Note that Access's long integer is 4 bytes, not 8 bytes.
DECIMAL (decimal) In the Access Help "Equivalent ANSI SQL Data Types", the synonymous keyword for defining DECIMAL is NUMERIC, but when using NUMERIC, the field type is double precision. .
●TEXT (remarks) There are 4 programming keywords: LONGTEXT, LONGCHAR, MEMO, NOTE, you can choose any one.
●IMAGE (OLE object) There are 4 programming keywords: IMAGE, GENERAL, LONGBINARY, OLEOBJECT, you can choose any one.
●CHARACTER (text) Programming keywords are: TEXT(n), CHAR(n), ALPHANUMERIC(n), STRING(n), VARCHAR(n), you can choose any one. Note that (1) n cannot be greater than 255; (2) When only the TEXT keyword is used, the default size is 255.
●Automatic numbering: There are two programming keywords: COUNTER and AUTOINCREMENT, you can choose any one.
Related recommendations: access database tutorial
The above is the detailed content of Introduction to access common fields. For more information, please follow other related articles on the PHP Chinese website!
Hot AI Tools
Undress AI Tool
Undress images for free
Undresser.AI Undress
AI-powered app for creating realistic nude photos
AI Clothes Remover
Online AI tool for removing clothes from photos.
Clothoff.io
AI clothes remover
Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!
Hot Article
Hot Tools
Notepad++7.3.1
Easy-to-use and free code editor
SublimeText3 Chinese version
Chinese version, very easy to use
Zend Studio 13.0.1
Powerful PHP integrated development environment
Dreamweaver CS6
Visual web development tools
SublimeText3 Mac version
God-level code editing software (SublimeText3)
How to understand DMA operations in C?
Apr 28, 2025 pm 10:09 PM
DMA in C refers to DirectMemoryAccess, a direct memory access technology, allowing hardware devices to directly transmit data to memory without CPU intervention. 1) DMA operation is highly dependent on hardware devices and drivers, and the implementation method varies from system to system. 2) Direct access to memory may bring security risks, and the correctness and security of the code must be ensured. 3) DMA can improve performance, but improper use may lead to degradation of system performance. Through practice and learning, we can master the skills of using DMA and maximize its effectiveness in scenarios such as high-speed data transmission and real-time signal processing.
10 latest tools for web developers
May 07, 2025 pm 04:48 PM
Web development design is a promising career field. However, this industry also faces many challenges. As more businesses and brands turn to the online marketplace, web developers have the opportunity to demonstrate their skills and succeed in their careers. However, as demand for web development continues to grow, the number of developers is also increasing, resulting in increasingly fierce competition. But it’s exciting that if you have the talent and will, you can always find new ways to create unique designs and ideas. As a web developer, you may need to keep looking for new tools and resources. These new tools and resources not only make your job more convenient, but also improve the quality of your work, thus helping you win more business and customers. The trends of web development are constantly changing.
How to add your WordPress site in Yandex Webmaster Tools
May 12, 2025 pm 09:06 PM
Do you want to connect your website to Yandex Webmaster Tools? Webmaster tools such as Google Search Console, Bing and Yandex can help you optimize your website, monitor traffic, manage robots.txt, check for website errors, and more. In this article, we will share how to add your WordPress website to the Yandex Webmaster Tool to monitor your search engine traffic. What is Yandex? Yandex is a popular search engine based in Russia, similar to Google and Bing. You can excel in Yandex
Using Dicr/Yii2-Google to integrate Google API in YII2
Apr 18, 2025 am 11:54 AM
VprocesserazrabotkiveB-enclosed, Мнепришлостольностьсясзадачейтерациигооглапидляпапакробоглесхетсigootrive. LEAVALLYSUMBALLANCEFRIABLANCEFAUMDOPTOMATIFICATION, ČtookazaLovnetakProsto, Kakaožidal.Posenesko
How to configure zend for apache
Apr 13, 2025 pm 12:57 PM
How to configure Zend in Apache? The steps to configure Zend Framework in an Apache Web Server are as follows: Install Zend Framework and extract it into the Web Server directory. Create a .htaccess file. Create the Zend application directory and add the index.php file. Configure the Zend application (application.ini). Restart the Apache Web server.
How to fix HTTP image upload errors in WordPress (simple)
May 12, 2025 pm 09:03 PM
Do you need to fix HTTP image upload errors in WordPress? This error can be particularly frustrating when you create content in WordPress. This usually happens when you upload images or other files to your CMS using the built-in WordPress media library. In this article, we will show you how to easily fix HTTP image upload errors in WordPress. What is the reason for HTTP errors during WordPress media uploading? When you try to upload files to Wo using WordPress media uploader
What is apache server? What is apache server for?
Apr 13, 2025 am 11:57 AM
Apache server is a powerful web server software that acts as a bridge between browsers and website servers. 1. It handles HTTP requests and returns web page content based on requests; 2. Modular design allows extended functions, such as support for SSL encryption and dynamic web pages; 3. Configuration files (such as virtual host configurations) need to be carefully set to avoid security vulnerabilities, and optimize performance parameters, such as thread count and timeout time, in order to build high-performance and secure web applications.
How to solve nginx403 error
Apr 14, 2025 pm 12:54 PM
The server does not have permission to access the requested resource, resulting in a nginx 403 error. Solutions include: Check file permissions. Check the .htaccess configuration. Check nginx configuration. Configure SELinux permissions. Check the firewall rules. Troubleshoot other causes such as browser problems, server failures, or other possible errors.


