Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
3 views
3 pages
SQL Related Programs
programs
Uploaded by
sasi
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download
Save
Save SQL RELATED PROGRAMS For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
3 views
3 pages
SQL Related Programs
programs
Uploaded by
sasi
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save SQL RELATED PROGRAMS For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save SQL RELATED PROGRAMS For Later
You are on page 1
/ 3
Search
Fullscreen
SQL RELATED PROGRAMS
1) Display record whose name start with particular character
import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",database='result',
passwd="Sasi@2023",auth_plugin="mysql_native_password")
cursor=mydb.cursor()
s='SELECT * FROM mark1 where STUD_NAME like "s%"'
print("MARK1 TABLE")
cursor.execute(s)
print(cursor.fetchall())
s1='SELECT * from mark1 where STUD_NAME like "_H%"'
print("MARK1 TABLE")
cursor.execute(s1)
print(cursor.fetchall())
__________________________________________________________________________________
2) update mark of particular student
import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",database='result',
passwd="Sasi@2023",auth_plugin="mysql_native_password")
cursor=mydb.cursor()
s='update mark1 set MARK=MARK+5 where STUD_NAME="SHALINI"'
cursor.execute(s)
mydb.commit()
print("MARK1 TABLE")
s1='select * from mark1'
cursor.execute(s1)
print(cursor.fetchall())
3) inserting records into table
import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",database='result',
passwd="Sasi@2023",auth_plugin="mysql_native_password")
cursor=mydb.cursor()
sql='INSERT INTO mark1 values(12001,"SHYAM",98.23),
(12002,"ABISHEK",87.56),(12003,"SRI",90.67),(12004,"SHALINI",85.98),
(12005,"VISHAL",78.87)'
cursor.execute(sql)
mydb.commit()
s='SELECT * FROM mark1'
print("MARK1 TABLE")
cursor.execute(s)
print(cursor.fetchall())
__________________________________________________________________________________
4) sorting records
import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",database='result',
passwd="Sasi@2023",auth_plugin="mysql_native_password")
cursor=mydb.cursor()
s='SELECT * FROM mark1 order by STUD_NAME'
print("MARK1 TABLE")
cursor.execute(s)
print(cursor.fetchall())
s1='SELECT * from mark1 order by MARK DESC'
print("MARK1 TABLE")
cursor.execute(s1)
print(cursor.fetchall())
__________________________________________________________________________________
5) display student record whose mark greater than 90
import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",database='result',
passwd="Sasi@2023",auth_plugin="mysql_native_password")
cursor=mydb.cursor()
s='SELECT * FROM mark1 where MARK>90'
print("MARK1 TABLE")
cursor.execute(s)
print(cursor.fetchall())
________________________________________________________________________________
6) display selected column
import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",database='result',
passwd="Sasi@2023",auth_plugin="mysql_native_password")
cursor=mydb.cursor()
s='SELECT REGNO,MARK FROM mark1'
print("MARK1 TABLE")
cursor.execute(s)
print(cursor.fetchall())
7) create database
import mysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",passwd="Sasi@20
23",auth_plugin="mysql_native_password")
cursor=mydb.cursor()
sql='create database result1'
cursor.execute(sql)
s='show databases'
print("ALL DATABASES")
cursor.execute(s)
print(cursor.fetchall())
You might also like
Mixed Use Development
PDF
No ratings yet
Mixed Use Development
13 pages
Python MQL Connectivity Programs
PDF
67% (3)
Python MQL Connectivity Programs
8 pages
Communication Skills Class 9
PDF
90% (10)
Communication Skills Class 9
14 pages
Workshop 18 - Mixing Analysis (LMI) Part A: Project Setup and Processing
PDF
No ratings yet
Workshop 18 - Mixing Analysis (LMI) Part A: Project Setup and Processing
30 pages
ERECTION METHOD STATEMENT Part 1
PDF
No ratings yet
ERECTION METHOD STATEMENT Part 1
8 pages
XII Practical File (SQL)
PDF
No ratings yet
XII Practical File (SQL)
15 pages
Database Programs
PDF
No ratings yet
Database Programs
5 pages
All Command For MySQL Connector
PDF
No ratings yet
All Command For MySQL Connector
6 pages
Python MQL Connectivity Programs
PDF
No ratings yet
Python MQL Connectivity Programs
8 pages
Cs Pracfile12
PDF
No ratings yet
Cs Pracfile12
14 pages
SQL - Notes
PDF
No ratings yet
SQL - Notes
21 pages
Use of Database 24-41
PDF
No ratings yet
Use of Database 24-41
21 pages
Cs Record SQL
PDF
No ratings yet
Cs Record SQL
16 pages
Python + MySql Connectivity
PDF
No ratings yet
Python + MySql Connectivity
4 pages
Interface Python With SQ L
PDF
No ratings yet
Interface Python With SQ L
5 pages
ML SQL Programs
PDF
No ratings yet
ML SQL Programs
9 pages
Prac 3
PDF
No ratings yet
Prac 3
4 pages
Query Formatting
PDF
No ratings yet
Query Formatting
13 pages
XII CS CH 16 Interface Python With MySQL
PDF
No ratings yet
XII CS CH 16 Interface Python With MySQL
22 pages
Exp 30
PDF
No ratings yet
Exp 30
5 pages
Practical 10
PDF
No ratings yet
Practical 10
5 pages
Annual Project
PDF
No ratings yet
Annual Project
5 pages
Inteface Python With Mysql
PDF
No ratings yet
Inteface Python With Mysql
4 pages
12-IP DB Interface Code
PDF
No ratings yet
12-IP DB Interface Code
5 pages
PROGRAMMS 11 Split Merge
PDF
No ratings yet
PROGRAMMS 11 Split Merge
20 pages
Sample CS Project - Student Data Management System
PDF
No ratings yet
Sample CS Project - Student Data Management System
17 pages
Unit 5 Python
PDF
No ratings yet
Unit 5 Python
12 pages
SOURCE CODE (CS)
PDF
No ratings yet
SOURCE CODE (CS)
4 pages
MySQL Connectivity ShortNotes
PDF
No ratings yet
MySQL Connectivity ShortNotes
7 pages
CS Phyton-SQL Connectivity
PDF
No ratings yet
CS Phyton-SQL Connectivity
10 pages
SQL Connecting
PDF
No ratings yet
SQL Connecting
8 pages
Interfacing Python With MySql
PDF
No ratings yet
Interfacing Python With MySql
3 pages
MySQL Connectvity Assignment
PDF
No ratings yet
MySQL Connectvity Assignment
2 pages
Student Management EDITED - Removed
PDF
No ratings yet
Student Management EDITED - Removed
13 pages
XII Student Management Project
PDF
No ratings yet
XII Student Management Project
25 pages
School Management System Text
PDF
No ratings yet
School Management System Text
4 pages
Interface Python With MySQL1
PDF
No ratings yet
Interface Python With MySQL1
12 pages
ML PGM
PDF
No ratings yet
ML PGM
8 pages
Python Exp8 60004210231
PDF
No ratings yet
Python Exp8 60004210231
9 pages
K C International School
PDF
No ratings yet
K C International School
28 pages
Interface Python With SQL Database
PDF
No ratings yet
Interface Python With SQL Database
7 pages
Interface Python With SQL
PDF
No ratings yet
Interface Python With SQL
5 pages
Interface 2
PDF
No ratings yet
Interface 2
18 pages
Python Connecting To Mysql Database
PDF
No ratings yet
Python Connecting To Mysql Database
6 pages
Connectivity Between Python and Mysql
PDF
No ratings yet
Connectivity Between Python and Mysql
14 pages
Student Management Source Code
PDF
No ratings yet
Student Management Source Code
11 pages
4th Module Python
PDF
No ratings yet
4th Module Python
33 pages
Newww
PDF
No ratings yet
Newww
13 pages
Student Registration System
PDF
No ratings yet
Student Registration System
19 pages
Aissce 2024 Xii
PDF
No ratings yet
Aissce 2024 Xii
2 pages
Dbms Exp 9
PDF
No ratings yet
Dbms Exp 9
5 pages
SQL Python Interconnection
PDF
No ratings yet
SQL Python Interconnection
5 pages
SQL Interface To Study
PDF
No ratings yet
SQL Interface To Study
2 pages
Codingssssssssssss
PDF
No ratings yet
Codingssssssssssss
4 pages
CRUD
PDF
No ratings yet
CRUD
2 pages
Mysql Queries For 2 Tables Practical
PDF
No ratings yet
Mysql Queries For 2 Tables Practical
4 pages
Aim: To Write A Python Program To Create A CSV File Student With Fields Studentid, Student Name and Score. Source Code
PDF
No ratings yet
Aim: To Write A Python Program To Create A CSV File Student With Fields Studentid, Student Name and Score. Source Code
16 pages
Interface Python
PDF
No ratings yet
Interface Python
5 pages
Lab Assignment 5
PDF
No ratings yet
Lab Assignment 5
17 pages
Notes-Ch-10-Interface Python With Mysql
PDF
No ratings yet
Notes-Ch-10-Interface Python With Mysql
3 pages
Python Database
PDF
No ratings yet
Python Database
7 pages
DataBase Progs
PDF
No ratings yet
DataBase Progs
4 pages
DBMS Lab Manual
From Everand
DBMS Lab Manual
Jitendra Patel
1.5/5 (3)
The Ultimate Guide To Master Excel Features & Formulas. Become A Pro From Scratch in Just 7 Days With Step-By-Step Instructions
From Everand
The Ultimate Guide To Master Excel Features & Formulas. Become A Pro From Scratch in Just 7 Days With Step-By-Step Instructions
Mike Shepard
No ratings yet
A New Drug-Shelf Arrangement For Reducing Medicati
PDF
No ratings yet
A New Drug-Shelf Arrangement For Reducing Medicati
9 pages
CT1900 Student Guide Femap101 PDF
PDF
No ratings yet
CT1900 Student Guide Femap101 PDF
395 pages
What Is Phenomenology? Describe The Proponents, Purposes and Types of Phenomenology
PDF
No ratings yet
What Is Phenomenology? Describe The Proponents, Purposes and Types of Phenomenology
4 pages
CV DBecerra
PDF
No ratings yet
CV DBecerra
3 pages
Vehicle Over-Speed Detection System
PDF
No ratings yet
Vehicle Over-Speed Detection System
3 pages
Kcse Revision
PDF
No ratings yet
Kcse Revision
8 pages
Guide To Good Practices of Shift Training
PDF
No ratings yet
Guide To Good Practices of Shift Training
29 pages
Mukul - Curriculum - Vitae - V.1
PDF
No ratings yet
Mukul - Curriculum - Vitae - V.1
2 pages
CKD SRL3
PDF
No ratings yet
CKD SRL3
89 pages
The Sabre Story: June 2000
PDF
No ratings yet
The Sabre Story: June 2000
5 pages
20 Sabiana Carisma Coanda Carte Tehnica 10.10.11 CI en
PDF
No ratings yet
20 Sabiana Carisma Coanda Carte Tehnica 10.10.11 CI en
28 pages
Single and Multi Camera Productions
PDF
No ratings yet
Single and Multi Camera Productions
9 pages
Saes N 120
PDF
100% (1)
Saes N 120
13 pages
Mohammad Mujahidvaliyullah's CEO Resume
PDF
No ratings yet
Mohammad Mujahidvaliyullah's CEO Resume
4 pages
Published in The Quality Management Forum, Winter Edition, Vol. 23, Number 4, 1997
PDF
No ratings yet
Published in The Quality Management Forum, Winter Edition, Vol. 23, Number 4, 1997
4 pages
Denso Petrolatum Tapes IFU 2017
PDF
No ratings yet
Denso Petrolatum Tapes IFU 2017
2 pages
CBM (2019)
PDF
No ratings yet
CBM (2019)
1 page
2021 Windspeedofethiopia
PDF
No ratings yet
2021 Windspeedofethiopia
8 pages
Biological Basis of Behavior - Lect 1
PDF
No ratings yet
Biological Basis of Behavior - Lect 1
19 pages
Geometry of Straight Lines
PDF
No ratings yet
Geometry of Straight Lines
17 pages
Nickel Alloys: Alloy 825 (UNS N08825)
PDF
No ratings yet
Nickel Alloys: Alloy 825 (UNS N08825)
1 page
Free CV Design.c2024
PDF
No ratings yet
Free CV Design.c2024
1 page
1 - Yaw and Lateral Stability - Main
PDF
No ratings yet
1 - Yaw and Lateral Stability - Main
7 pages
Isolated Footing
PDF
No ratings yet
Isolated Footing
5 pages
Soft Skills
PDF
No ratings yet
Soft Skills
12 pages
Expectancy Theory PDF
PDF
No ratings yet
Expectancy Theory PDF
2 pages