0% found this document useful (0 votes)
31 views

Ch-9 Starting With LibreOffice Base

Uploaded by

satyagaming4444
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Ch-9 Starting With LibreOffice Base

Uploaded by

satyagaming4444
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Chapter-9

Starting with LibreOffice Base


Introduction
 LibreOffice Base is a free and open source a DBMS.
 It can be downloaded from www.libreoffice.org.
 Data which we stored in DBMS can be a text, number, date or in any other form. So, we
need to understand different types of data that can be stored in a table.

Data Types
A data type refers to the type of data that will be stored in that particular field. The memory
size of a field varies according to its data type. Some commonly used data types are:
1. Text Data Type -
 The text data is a combination of letters, numbers or special characters.
 No arithmetic calculations can be performed on text data.
 Examples of text data type is PAN Card Number, Name, Marks, etc.
 Various types of Text data types are:

Name Data type Description

Memo LONGVARCHAR It is used to store some descriptive data having more than 255
characters. It can store text data up to 64,000 characters.

Text CHAR It is used to enter fixed number of characters specified by the


(fix) user. It can be used for license number, passport number as
they have fixed number of characters.

Text VARCHAR It Stores upto the specified length. The number of bytes
consumed depends on the number of characters entered by
the user. For example, the address is defined as varchar (50),
and if the address entered by the user is of 20 characters, then
only 20 bytes will be occupied in the database.
2. Numeric Data Type –
 Numeric data types consist of numbers.
 The numbers can be integer or real numbers on which any type of arithmetic
calculations can be performed.
 For example, 10, -34.8, 90.6789, -86 are of numeric data type.

Name Data Type Range


Tiny Integer TYNYINT 0-255
Small Integer SMALLINT -32768 TO 32767
Integer INTEGER -2.14×109 to 2.14×109
BigInt BIGINT -2.3×1018 to 2.3×1018
Number NUMERIC Unlimited
Decimal DECIMAL Unlimited
Float FLOAT
Real REAL 5×10(-324) to 1.79×10(308)
Double DOUBLE
Currency Data Type –
 The currency data type indicates the monetary values and can be stored using
currencies of various countries.
 For example, $100, £ 500 or Rs. 25.50.
Date Data Type –
 This data type is used to indicate dates and time.
 For example, 12/25/2019, 08:45 AM.
 The data and time can be stored in various formats.
Table Shows Various forms of Date data type are
Name Description
Date Stores the year, month and day as it is stored in the system.
Time Stores the time of the day as hour, minute and second.
Timestamp Stores date and time information at once.

Boolean Data Type:


 In Boolean data type there can be only two values- True or False.
 This also can be given in multiple formats like Yes/No, True/False, On/Off.
Binary Data Type:
 The Binary data type used to store digitized images and sounds that comes as long
string of zeros and ones.

You might also like