Last active
August 29, 2015 14:00
-
-
Save pi0/11053969 to your computer and use it in GitHub Desktop.
SQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table students ( f_name string , l_name string , id int , score float , status string ) ; | |
insert into students parameter ( f_name , l_name , id , score , status ) values ( ali , irani , 45 , 20.0 , passed ) ; | |
insert into students parameter ( f_name , l_name , id , score , status ) values ( pooya , parsa , 48 , 15.6 , passed ) ; | |
insert into students parameter ( f_name , l_name , id , score , status ) values ( masoud , bonabi , 12 , 17.3 , passed ) ; | |
insert into students parameter ( f_name , l_name , id , score , status ) values ( fellan , bahman , 1 , 9.9 , failed ) ; | |
update from students set status = pending ; | |
update from students set status = special where id = 12 ; | |
select * from students | |
select * from students where score = 9.9 ; | |
#delete from students where f_name = pooya ; | |
#delete from students ; | |
#drop students ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment