Data types  CHAR (size): This data type is used to store character strings values of fixed length. The size in brackets determines the number of characters.

Slides:



Advertisements
Similar presentations
CIT 613: Relational Database Development using SQL Revision of Tables and Data Types.
Advertisements

Database Chapters.
Single Variable and a Lot of Variables The declaration int k; float f; reserve one single integer variable called k and one single floating point variable.
Representing Data Elements Gayatri Gopalakrishnan.
1 A GUIDE TO ORACLE8 CHAPTER 2: Creating and ModifyingDatabaseTables 2.
Winter 2002Arthur Keller – CS 1808–1 Schedule Today: Jan. 29 (T) u Modifications, Schemas, Views. u Read Sections Assignment 3 due. Jan. 31 (TH)
Database Modifications A modification command does not return a result as a query does, but it changes the database in some way. There are three kinds.
Creating Database Tables © Abdou Illia MIS Spring /21/2015.
Representation and Conversion of Numeric Types 4 We have seen multiple data types that C provides for numbers: int and double 4 What differences are there.
The printf Method The printf method is another way to format output. It is based on the printf function of the C language. System.out.printf(,,,..., );
Your Oracle Account UserName is the same as your UWP username Followed Not case sensitive Initial Password: UWPstudent Password is case sensitive.
Variables and Data Types
Program structure Four different storage-class specifications: –Automatic (auto): local to a function, normally declared variables are automatic. Does.
STRING Dong-Chul Kim BioMeCIS UTA 10/7/
The char Data Type A char is a one byte integer type typically used for storing characters. Example: char oneLetter = ’D’; We enclose the character in.
C Tokens Identifiers Keywords Constants Operators Special symbols.
CS 3630 Database Design and Implementation. Your Oracle Account UserName is the same as your UWP username Followed Not case sensitive Initial.
CHAPTER:14 Simple Queries in SQL Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Data Types Copyright © 2006 Patrick McDermott College of Alameda
Daybase (DayCart) Introduction What is ‘Daybase’ ? Oracle Schema Objects. Oracle Datatypes. Simple Example. Demo.
© 2007 by Prentice Hall3-1 Introduction to Oracle 10g Chapter 3 Creating, Modifying, Renaming, and Deleting Database Tables James Perry and Gerald Post.
Oracle Data Definition Language (DDL) Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2008.
Sizing Basics  Why Size?  When to size  Sizing issues:  Bits and Bytes  Blocks (aka pages) of Data  Different Data types  Row Size  Table Sizing.
1 Structured Query Language (SQL). 2 Contents SQL – I SQL – II SQL – III SQL – IV.
1 Creating and Modifying Database Objects. 2 An Oracle database consists of multiple user accounts Each user account owns database objects Tables Views.
11 3 / 12 CHAPTER Databases MIS105 Lec15 Irfan Ahmed Ilyas.
Primitive Variables.
Operators & Identifiers The Data Elements. Arithmetic Operators exponentiation multiplication division ( real ) division ( integer quotient ) division.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
Advanced Web 2012 Lecture 3 Sean Costain What is a Database? Sean Costain 2012 A database is a structured way of dealing with structured information.
Tables and Constraints Oracle PL/SQL. Datatypes The SQL Data Definition Language Commands (or DDL) enable us to create, modify and remove database data.
Relational Databases. Relational database  data stored in tables  must put data into the correct tables  define relationship between tables  primary.
SQL ORACLE 1. Data Type 2 3 VARCHAR2(size [BYTE | CHAR]) Variable-length character string having maximum length size bytes or characters. Maximum size.
8 Copyright © 2004, Oracle. All rights reserved. Managing Schema Objects.
1 Chapter 2: Creating and Modifying Database Objects.
Sql DDL queries CS 260 Database Systems.
IMS 4212: Data Modeling—Attributes and Domains 1 Dr. Lawrence West, Management Dept., University of Central Florida Attributes and Domains.
Java Programming, Second Edition Chapter Two Using Data Within a Program.
Operators & Identifiers The Data Elements. Arithmetic Operators exponentiation multiplication division ( real ) division ( integer quotient ) division.
1.2 Primitive Data Types and Variables
Chapter One Lesson Three DATA TYPES ©
Academic Year 2015 Autumn. MODULE CC2006NI: Data Modelling and Database Systems Academic Year 2015 Autumn.
DATA TYPES, VARIABLES AND CONSTANTS. LEARNING OBJECTIVES  Be able to identify and explain the difference between data and information  Be able to identify,
Basic SQL*Plus edit and execute commands SQL*Plus buffer and built-in editor holds the last SQL statement Statements are created in free-flow style and.
8 Copyright © 2005, Oracle. All rights reserved. Managing Schema Objects.
Basic Data Types อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา Chapter 4.
What is your Character Data Type? March 5, 2016 John Deardurff Website:
Topic: Binary Encoding – Part 2
Choosing Data Types Database Administration Fundamentals
Creating Database Objects
Introduction To Oracle
CS 3630 Database Design and Implementation
Managing Tables, Data Integrity, Constraints by Adrienne Watt
Chapter 6: Data Types Lectures # 10.
Fundamentals of PL/SQL part 1 (Basics)
SQL – Data types.
Attributes and Domains
What is your Character Data Type?
Working with Data Types
Defining a Database Schema
Unit-3 Interactive SQL.
C++ Data Types Data Type
Oracle Data Definition Language (DDL)
Attributes and Domains
Kirkwood Center for Continuing Education
ESRM 250/CFR 520 Autumn 2009 Phil Hurvitz
Creating Database Objects
Introduction to Oracle
Database Instructor: Bei Kang.
SQL (Structured Query Language)
Presentation transcript:

Data types  CHAR (size): This data type is used to store character strings values of fixed length. The size in brackets determines the number of characters the cell can hold. The maximum number of characters (i.e. the size) this data type can hold is 255 characters. The data held is right-padded with spaces to whatever length specified.  VARCHAR / VARCHAR2: This data type is used to store variable length alphanumeric data. It is more flexible form of the CHAR data type. The maximum this data type can hold upto 4000 characters. One difference b/w this data type and the CHAR data type is ORACLE compares VARCHAR values using non-padded comparison semantics i.e. the inserted values will not be padded with spaces. VARCHAR is used in ORACLE 8i and before whereas VARCHAR2 is used in version 9i and later.

 DATE: This data type is used to represent date and time. The standard format is DD-MON-YY as in 25-JAN-87. To enter dates other than in standard format, use the appropriate functions. Date Time stores date in 24-Hour format. Valid dates range from January 1, 4712 B.C. to December 31, 4712 A.D.  NUMBER (P, S): The NUMBER data type is used to store numbers (fixed or floating point). Numbers of virtually any magnitude maybe stored upto 38 digit precision. The precision (P), determines the maximum length of the data, whereas the scale (S), determines the number of places to the right of the decimal.

 LONG: This data type is used to store variable length character strings containing upto 2 GB. LONG data can be used to store arrays of binary data in ASCII format. Only one LONG value can be defined per table. A table containing a LONG value cannot be clustered.  RAW / LONG RAW: This data type is used to store binary data, such as digitized picture or image. Data loaded into columns of these data types are stored without any further conversion. RAW data type can have a maximum length of 255 bytes. LONG RAW data type can contain up to 2 GB.

 INT: INT data type is used to store integer values. It is not mandatory to give the size of the value while declaring.  BOOLEAN: This data type stores values of 1 or 2. It is valid in PLSQL, but this data type does not exist in ORACLE 8i and 9i.