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)
2 views
3 pages
SQL RELATED PROGRAMS
programs
Uploaded by
sasi
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 now
Download
Save SQL RELATED PROGRAMS For Later
Download
Save
Save SQL RELATED PROGRAMS For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
2 views
3 pages
SQL RELATED PROGRAMS
programs
Uploaded by
sasi
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 now
Download
Save SQL RELATED PROGRAMS For Later
Carousel Previous
Carousel Next
Download
Save
Save SQL RELATED PROGRAMS For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
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
Murder at The Old Wolf Inn Hires
PDF
100% (5)
Murder at The Old Wolf Inn Hires
36 pages
Python MQL Connectivity Programs
PDF
67% (3)
Python MQL Connectivity Programs
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
681559577-PYTHON-MQL-CONNECTIVITY-PROGRAMS
PDF
No ratings yet
681559577-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
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
688275491-Student-Management-EDITED_removed (2)
PDF
No ratings yet
688275491-Student-Management-EDITED_removed (2)
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
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 (1)
PDF
No ratings yet
Python connecting to Mysql Database (1)
6 pages
CONNECTIVITY BETWEEN PYTHON AND MYSQL (1)
PDF
No ratings yet
CONNECTIVITY BETWEEN PYTHON AND MYSQL (1)
14 pages
8. STUDENT MANAGEMENT SOURCE CODE
PDF
No ratings yet
8. 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[1]
PDF
No ratings yet
dbms_exp_9[1]
5 pages
SQL Python Interconnection
PDF
No ratings yet
SQL Python Interconnection
5 pages
codingssssssssssss
PDF
No ratings yet
codingssssssssssss
4 pages
SQL Interface to Study.docx
PDF
No ratings yet
SQL Interface to Study.docx
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
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
Python Interface - with mysql connector
PDF
No ratings yet
Python Interface - with mysql connector
15 pages
pythonmysqlnew
PDF
No ratings yet
pythonmysqlnew
7 pages
Dbconnectivity
PDF
No ratings yet
Dbconnectivity
7 pages
interface with python
PDF
No ratings yet
interface with python
6 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
Daido Chain Catalog
PDF
100% (1)
Daido Chain Catalog
147 pages
21-039 Avtc-43 Aircraft Aydin Yaşar ( (1) )
PDF
No ratings yet
21-039 Avtc-43 Aircraft Aydin Yaşar ( (1) )
6 pages
Diacidal Elution
PDF
No ratings yet
Diacidal Elution
2 pages
Modicon M340 For Ethernet: Communications Modules and Processors User Manual
PDF
No ratings yet
Modicon M340 For Ethernet: Communications Modules and Processors User Manual
396 pages
RDP 804 Example Specimen Retention SOP - Blank - Copy - Id - 10212579
PDF
No ratings yet
RDP 804 Example Specimen Retention SOP - Blank - Copy - Id - 10212579
4 pages
Gas Turbine History
PDF
100% (2)
Gas Turbine History
6 pages
2024 Grade 8 November Mock Exam Memorandum p1
PDF
No ratings yet
2024 Grade 8 November Mock Exam Memorandum p1
7 pages
Brainminders Bans Bullying Skit
PDF
No ratings yet
Brainminders Bans Bullying Skit
7 pages
Brain Visa
PDF
No ratings yet
Brain Visa
31 pages
Project Proposal: (Digital Horn Counter) : Background
PDF
No ratings yet
Project Proposal: (Digital Horn Counter) : Background
1 page
Bangalore
PDF
100% (1)
Bangalore
37 pages
Nalco - 3D Solid Chemical For CW
PDF
No ratings yet
Nalco - 3D Solid Chemical For CW
4 pages
Algebra and Functions 2 QP
PDF
No ratings yet
Algebra and Functions 2 QP
9 pages
Food Safety Management System
PDF
No ratings yet
Food Safety Management System
1 page
WK 12 WK HW
PDF
No ratings yet
WK 12 WK HW
6 pages
ANSYS Stress Linearization
PDF
No ratings yet
ANSYS Stress Linearization
15 pages
AQA Double Slit Interference Answers
PDF
No ratings yet
AQA Double Slit Interference Answers
15 pages
Form 90-123 Force Account Labor Summary Record
PDF
No ratings yet
Form 90-123 Force Account Labor Summary Record
2 pages
A. P 600,000 and P5,500,000: Financial Statement Analysis
PDF
100% (2)
A. P 600,000 and P5,500,000: Financial Statement Analysis
20 pages
HH 200
PDF
No ratings yet
HH 200
12 pages
Gyroscope - Wikipedia
PDF
No ratings yet
Gyroscope - Wikipedia
15 pages
Sti0808 Hill
PDF
No ratings yet
Sti0808 Hill
7 pages
Optical and Wireless Communications Next Generation Networks 1st Edition Matthew N.O. Sadiku (Author) - The newest ebook version is ready, download now to explore
PDF
No ratings yet
Optical and Wireless Communications Next Generation Networks 1st Edition Matthew N.O. Sadiku (Author) - The newest ebook version is ready, download now to explore
55 pages
Fixed and Growth Mindset
PDF
No ratings yet
Fixed and Growth Mindset
2 pages
The Constitution of The Philippine Commonwealth
PDF
No ratings yet
The Constitution of The Philippine Commonwealth
11 pages
Inspection & Testing of Electrical Systems 76927 - 16
PDF
0% (1)
Inspection & Testing of Electrical Systems 76927 - 16
17 pages
Deep Learning Networks Design Development And Deployment Jayakumar Singaram pdf download
PDF
No ratings yet
Deep Learning Networks Design Development And Deployment Jayakumar Singaram pdf download
57 pages
Microsoft Office For Mac Shortcuts
PDF
No ratings yet
Microsoft Office For Mac Shortcuts
3 pages
Paper: Cost Accounting and Financial Management: Raveendranath Kaushik & Associates Cost Accountant
PDF
No ratings yet
Paper: Cost Accounting and Financial Management: Raveendranath Kaushik & Associates Cost Accountant
13 pages