![]() |
أنواع البيانات فى الأكسسس إعداد : محمد طاهر |
فى هذا الدرس نتعرف علي أنواع البيانات المختلفة فى الأكسس
سبق و ان مررنا سريعا أثناء انشاء الجدوال علي بعض انواع الحقول ، و الأن سنعرض بالتفصيل لأنواع البيانات الموجودة فى أكسس
مع ملاحظة أنه عند اختيار نوع البيانات ، يجب اختيار النوع الاقل حجما من الانواع المناسبة للحقل
أنواع البيانات
النوع | الوصف | الحجم |
---|---|---|
Text | (Default) Text or combinations of text and numbers, as well as numbers that don't require calculations, such as phone numbers. | Up to 255 characters or the length set by the FieldSize property, whichever is less. Microsoft Access does not reserve space for unused portions of a text field. |
تركيبة من الحروف و الارقام ، و الارقام هنا تعامل كنص و لا تدخل فى اي حسابات |
الحد الاقصي هو 255 حرف و يمكن تحديد الطول المناسب من خاصية طول النص من مربع الخصائص ، مع ملاحظة أن الاكسس لا يقوم بحجز مكان للجزء الغير مستغل من النص |
|
Memo | Lengthy text or combinations of text and numbers. | Up to 65,535 characters. (If the Memo field is manipulated through DAO and only text and numbers [not binary data] will be stored in it, then the size of the Memo field is limited by the size of the database.) |
تركيبة أكثرطولا من الحروف و الارقام ، و الارقام هنا تعامل كنص و لا تدخل فى اي حسابات |
الحد الاقصي هو 65535 حرف و يمكن تحديد الطول المناسب من خاصية طول النص من مربع الخصائص
|
|
Number | Numeric data used in mathematical calculations. For more information on how to set the specific Number type, see the FieldSize property topic. | 1, 2, 4, or 8 bytes (16 bytes if the FieldSize property is set to Replication ID). |
بيانات رقمية ،ا تدخل فى اي حسابات و لكن لها العديد من الانواع ، و يجب اختيار النوع المناسب من بين الأنواع المتاحة |
من واحد الي 8 بايت بحسب نوع الحقل الرقمي و يصل الي 16 بايت فى حالة ال replication
|
|
Date/Time | Date and time values for the years 100 through 9999. | 8 bytes. |
بيانات تعبر عن التاريخ و الوقت و ذلك منذ عام 100 و حتي عام 9999 | 8 بايت | |
Currency | Currency values and numeric data used in mathematical calculations involving data with one to four decimal places. Accurate to 15 digits on the left side of the decimal separator and to 4 digits on the right side. | 8 bytes. |
أرقام تعبر عن العملة و تدخل فى المعادلات الحسابية و تتوقف دقتها عند 15 رقم يسار العلامة العشرية و أربع أرقام يمين العلامة العشرية | 8 بايت | |
AutoNumber | A unique sequential (incremented by 1) number or random number assigned by Microsoft Access whenever a new record is added to a table. AutoNumber fields can't be updated. For more information, see the NewValues property topic. | 4 bytes (16 bytes if the FieldSize property is set to Replication ID). |
رقم معرف وحيد يزيد اما بمعدل ثابث = 1 أو يزيد بطريقة عشوائية مع زيادة عدد السجلات ، و لا يمكن تعديله يدويا | 4 بايت و تصل الي 16 بايت فى حالة ال replication | |
Yes/No | Yes and No values and fields that contain only one of two values (Yes/No, True/False, or On/Off). | 1 bit. |
الحقول من نوع نعم/لا تحتوي أحد القيمتين فقط ( نعم/لا ، صواب/خطأ ، مفتوح/مغلق) | 1 بايت | |
OLE Object | An object (such as a Microsoft Excel spreadsheet, a Microsoft Word document, graphics, sounds, or other binary data) linked to or embedded in a Microsoft Access table. | Up to 1 gigabyte (limited by available disk space) |
كائن (ورقة عمل اكسيل ، مستند وورد ،
رسم ،صوت ، أو أي بيانات ثنائية) و هذا الا يكون اما بالاحتواءالمباشر أو بالربط مع هذا الكائن ) |
يصل الي 1 ججا بايت ، أو الحجم المتاح علي القرص الصلب أيهما أصغر | |
Hyperlink |
Text or combinations of text and numbers stored as text and used as a
hyperlink address. A hyperlink address can have up to three parts:
text to display — the text that appears in a field or control. address — the path to a file (UNC path) or page (URL). subaddress — a location within the file or page. screentip — the text displayed as a tooltip. The easiest way to insert a hyperlink address in a field or control is to click Hyperlink on the Insert menu. |
Each part of the three parts of a Hyperlink data type can contain up to 2048 characters. |
نص أو مجموعة من النصوص التي تكون عنوان الارتباط التشعبي و
الذي بدوره يتكون من 3 أجزاء العنوان العنوان الفرعي داخل الصفحة الملاحظة التي تظهر علي الشاشة و أسهل طريقة لعمل ارتباط تشعبي هي من قائمة Insert نختار Hyperlink |
كل جزء من ال 3 أجزاء يمكن أن يحوي 2048 حرف | |
Lookup Wizard | Creates a field that allows you to choose a value from another table or from a list of values by using a list box or combo box. Clicking this option starts the Lookup Wizard, which creates a Lookup field. After you complete the wizard, Microsoft Access sets the data type based on the values selected in the wizard. | The same size as the primary key field used to perform the lookup, typically |
ينشيئ حقل يسمح لك باختيار بيانات
اما من جدول آخر أو من قائمة محددة من القيم اما من خلال مربع السرد أو من خلال
قائمة بيانات و باختيار هذا الخيار يبدأ تلقائيا معالج الاختيارات الذي يحدد نوع الحقل بناء علي ما اخترت من بيانات |
نفس حجم حقل المفتاح المستخدم فى أجاء الاختيار |
و سنتحدث هنا عن خاصية حجم الحقل Field Size فقط ثم نكمل الحديث عن باقي خصائص الحقل لاحقا
في حالة أن الحقل يكون من نوع نص ، فيتم تحديد هذه الخاصية بالقيمة المناسبة بين صفر و 255
أما فى حالة كون الحقل حقل رقمي فيمكننا أن نختار بين الأنواع التالية :
النوع | الوصف | العلامات العشرية | Storage size |
---|---|---|---|
Byte | Stores numbers from 0 to 255 (no fractions). | None | 1 byte |
يتم تخزين أي رقم بين صفر و 255 | لا يوجد | ا بايت | |
Decimal |
Stores numbers from –10^38–1 through 10^38–1 (.adp) Stores numbers from –10^28–1 through 10^28–1 (.mdb) |
28 | 12bytes |
من 10^38 -1 الي -10^38 -1 فى حالية ال adp و من 10^28 -1 الي -10^28 -1 فى حالية ال adp
|
28 | 12 بايت | |
Integer | Stores numbers from –32,768 to 32,767 (no fractions). | None | 2 bytes |
من –32,768 الي 32,767 بدون كسور | لا يوجد | 2 بايت | |
Long Integer | (Default) Stores numbers from –2,147,483,648 to 2,147,483,647 (no fractions). | None | 4 bytes |
من –2,147,483,648 الي 2,147,483,647 | لا يوجد | 4 بايت | |
Single |
Stores numbers from –3.402823E38 to –1.401298E–45 for negative values and from 1.401298E–45 to 3.402823E38 for positive values. |
7
|
4 bytes |
من
–3.402823E38
الي
–1.401298E–45 و من 1.401298E–45 الي 3.402823E38 فى الارقام الموجبة
|
7 | ||
Double |
Stores numbers from –1.79769313486231E308 to –4.94065645841247E–324 for negative values and from 4.94065645841247E–324 to 1.79769313486231E308 for positive values. |
15 | 8 bytes |
من –1.79769313486231E308 الي
–4.94065645841247E–324 و من 4.94065645841247E–324 الي 1.79769313486231E308 فى الارقام الموجبة |
15 | 8 بايت | |
Replication ID | Globally unique identifier (GUID) | N/A | 16 bytes |
مؤجل الحديث عنها الي حين مناقشة موضوع ال replication |