Skip to content
cs2study

cs2study

Computer Science C.B.S.E syllabus

  • Home
  • Python-Class XI
    • Videos
    • PDF/PPT
    • Programs
    • Papers
    • MCQ Quiz
    • Project/Practical File Class XI
    • Online Class-XI
  • Python-Class XII
    • Videos
      • File Handling
      • Python Functions
      • Stack
      • MySQL with Python
      • Videos-Networking
    • PDF/PPT
      • Function
      • Python Modules
      • File Handling
      • Stack and Queue
      • MySQL
      • Networking
    • Programs
      • Function Programs
      • File Handling
      • Stack and Queue
      • MySQL
      • MySQL Connectivity
    • Papers
      • Sample Papers
      • School Papers
      • Assignment/Test
    • MCQ
      • MCQ Quiz
      • MCQ Chapter-wise
    • Projects & Practical Files
    • Board Practical Exam
  • Python-Quick Revision
    • Notes
    • Errors and Outputs
    • Exam Revision Notes
    • Question Bank
  • C++
    • Notes
    • Programs/Questions
    • Project/Practical File C++
  • MySQL Software
  • Syllabus
  • Toggle search form

Category: MySQL with Python

MySQL-Constraints

Posted on By Pallavi S 20 Comments on MySQL-Constraints
MySQL-Constraints

CONSTRAINTS: A Constraint is a condition or checks applicable on a field or set of fields. Constraints are also known as integrity constraints because they applied to maintain data integrity. Two types of constraints: Column constraints: Apply only to individual columns. Table constraints:    Apply to group of one or more columns. Syntax: CREATE TABLE…

Read More “MySQL-Constraints” »

MySQL Notes, MySQL with Python

MySQL Python Connectivity Commands

Posted on By Pallavi S 19 Comments on MySQL Python Connectivity Commands
MySQL Python Connectivity Commands

MySQL Python Connectivity Commands #CREATE DATABASE import mysql.connector mydb=mysql.connector.connect(host=”localhost”,user=”root”,passwd=”12345″) mycursor=mydb.cursor() mycursor.execute(“CREATE DATABASE SCHOOL”) # SHOW DATABASE import mysql.connector mydb=mysql.connector.connect(host=”localhost”,user=”root”,passwd=”12345″) mycursor=mydb.cursor() mycursor.execute(“SHOW DATABASE”) for x in mycursor:    print (x) # CREATE TABLE import mysql.connector mydb=mysql.connector.connect(host=”localhost”,user=”root”,passwd=”12345″,database=”student”) mycursor=mydb.cursor() mycursor.execute(“CREATE TABLE FEES (ROLLNO INTEGER(3),NAME VARCHAR(20),AMOUNT INTEGER(10));”) # SHOW TABLES import mysql.connector mydb=mysql.connector.connect(host=”localhost”,user=”root”,passwd=”12345″,database=”student”) mycursor=mydb.cursor() mycursor.execute(“SHOW TABLES”) for x in…

Read More “MySQL Python Connectivity Commands” »

MySQL with Python

MySQL with Python Connectivity Notes

Posted on By Pallavi S No Comments on MySQL with Python Connectivity Notes
MySQL with Python Connectivity Notes

MySQL with Python Connectivity Notes import mysql.connector as m db = m.connect(host=”localhost”,user=”root”,passwd=”1234″) # Open database connection  cursor = db.cursor() # prepare a cursor object using cursor() method  cursor.execute(“show databases”) # execute SQL query using execute() method. data = cursor.fetchone()  # Fetch a single row using fetchone() method. print (“Database version : %s ” % data)…

Read More “MySQL with Python Connectivity Notes” »

MySQL with Python

Recent Posts

  • Tips-Networking Case-based Questions
  • XII-Board Practical Exam 2020-21
  • Stack and Queue
  • Questions on Tuples
  • Networking -Full Forms

Recent Comments

  • Moda su kaçak tespiti on Tips-Networking Case-based Questions
  • Tosha on Tips-Networking Case-based Questions
  • zoritoler imol on LIST
  • zoritoler imol on LOOPS
  • zoritoler imol on Tips-Networking Case-based Questions

Categories

  • About
  • C++
    • Notes
    • Programs/Questions
    • Project/Practical File C++
  • Class XI
    • MCQ
    • Online Class-XI
    • PDF/PPT
  • Class XII
    • Assignment/Test
    • Board Practical Exam
    • File Handling
    • File Handling
    • Function Programs
    • Notes
    • Projects and Practical Files Class XII
      • Project/Practical File Class XI
      • Stack
        • Stack and Queue
    • Quick Revision
      • Errors and Outputs
      • Exam Revision Notes
      • Question Bank
    • Stack and Queue
  • File Handling
  • Function
  • Home
  • MCQ Chapter-wise
  • MCQ Quiz
  • MCQ Quiz
  • MySQL
  • MySQL Software
  • Papers
  • Papers
  • PDF/PPT
    • MySQL
    • MySQL with Python
    • Networking
  • Practical/Project
  • Programs
  • Programs
    • MySQL Connectivity
  • Python Functions
  • Python Modules
  • Python_fundamentals
  • Sample Papers
  • School Papers
  • Syllabus
  • Videos
  • Videos
  • Videos-Networking

Archives

  • March 2021
  • February 2021

Categories

  • Assignment/Test paper
  • Board Practical Exam
  • Class XI
  • Class XI
  • Class XII
  • Function
  • MySQL Notes
  • MySQL with Python
  • Networking
  • tuple
  • XI Videos

Copyright © 2025 cs2study.

Powered by PressBook WordPress theme