Notes
Notes - notes.io |
ALTER USER user_name
IDENTIFIED BY new_password
changing language to english:
ALTER SESSION
SET NLS_LANGUAGE= 'ENGLISH'
SELECT *
FROM user_tables
SELECT *
FROM all_tables
creating tables:
CREATE TABLE STATES
(state CHAR(2),
name CHAR(16),
capitalcity CHAR(20),
population NUMBER(6,2))
adding data :
INSERT INTO STATES VALUES
('NY','NEW YORK','ALBANY','1954,20')
opening a table:
SELECT *
FROM STATES
deleting an attribute:
DELETE FROM STATES
WHERE POPULATION=2130
updating an attribute:(virgul yerine nokta koymak gerekiyor)
UPDATE STATES
SET POPULATION=1954.21
WHERE STATE='NY'
table rename:
RENAME STATES TO STATES_OLD
creating table with integrity constraints:
CREATE TABLE STATES
(state CHAR(2) PRIMARY KEY,
name CHAR(16) UNIQUE,
capitalcity CHAR(20) NOT NULL,
population NUMBER(6,2) CHECK(POPULATION>=0))
ADD ATTRIBUTES FROM OLD TABLE TO A NEW ONE :
INSERT INTO STATES
SELECT * FROM STATES_OLD
adding attribute:
ALTER TABLE STATES
ADD AREA NUMBER(7,1)
EX for offices attribute:
CREATE TABLE OFFICES
(state CHAR(2) ,
street_and_number CHAR(30),
zipcode CHAR(8),
phone CHAR(15),
email CHAR(30),
website CHAR(30),
office_number NUMBER(3) PRIMARY KEY,
FOREIGN KEY(state) REFERENCES STATES)
INSERT INTO OFFICES VALUES
('NY','BROOK ST 45','4584','0554869524','[email protected]','www,office1.com','233')
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team