Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

PART II SQL Development > CHAPTER 6 Creating Users and Structures

image

image

n this chapter, you’ll learn how to create users, databases, tables, indexes, constraints, sequences, and views in Oracle and MySQL databases. The chapter is organized by the following topics:

image  Users

image  Databases

image  Tables

image  Indexes

Users are synonymous with schemas in an Oracle database, but they are distinct from databases in MySQL databases. A database or schema is a private work area, but it is also a container of tables. Tables are two-dimensional containers of data, and views are logical filters to access subsets or supersets of tables. Sequences are structures that support automatic numbering of ID columns for tables. Sequences are described and explained in the “Tables” section in this chapter, because although they’re independent data structures in an Oracle database, they’re properties of tables in the MySQL database. Constraints are structures that restrict the type of data you can put in tables. Tables and constraints are also discussed in the “Tables” section.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial