define sql code example

Example 1: what sql stand for

Structured Query Language

Example 2: whats sql

SQL stands for Structured Query Language. It’s the language of choice on today’s web for storing,
manipulating and retrieving data within relational databases. Most, if not all of the websites you visit
will use it in some way.
Using SQL, you are able to interact with the database by writing queries, which when executed,
return any results which meet its criteria.

Example 3: what is sql

SQL is a domain-specific language used in programming and designed for managing
data held in a relational database management system, or for stream processing
in a relational data stream management system.

Example 4: SQL

CREATE TABLE friends (
   id INTEGER,
   name TEXT,
   birthday DATE
);

INSERT INTO friends (id, name, birthday) 
VALUES (1, 'Jane Doe', '1990-05-30');


INSERT INTO friends(id , name , birthday)
VALUES(2 , 'APOORV' , '2000-2-2');



UPDATE friends
SET name = 'Jane Srivastava'
WHERE id = 1;

ALTER TABLE friends 
ADD COLUMN email TEXT; 


UPDATE friends 
SET email =  '203029@klsafjls'
where id  = 1; 

UPDATE friends 
SET email =  '203029@klsafjls'
where id  = 2;

DELETE FROM friends 
WHERE id = 1;


SELECT * 
FROM friends;

Tags:

Sql Example