学习 第4页
个人学习记录

Mysql公司表5月11作业

-- (1)删除数据库 drop database if exists Company; -- (2)创建数据库 create database if not exists Company; -- (3)使用数据库 use Company; drop database if exists Rankinfo; create tab...
珊瑚海的头像-北梦の博客珊瑚海1年前
0271

4月4MYSQL日常练习

drop database if exists xsxk; create database if not exists xsxk; use xsxk; show databases; -- 4请根据以下需要存储的数据,设计各表结构即表中各列定义 -- 5.1学生表设学号为主键,要求...
珊瑚海的头像-北梦の博客珊瑚海1年前
01133

mysql作业–yxj

-- (1)删除数据库 drop database if exists SchoolDB; -- (2)创建数据库 create database if not exists SchoolDB; -- (3)使用数据库 use SchoolDB; -- 一、 drop table if exists student; cre...
iu不错哦的头像-北梦の博客iu不错哦1年前
0859

数据库MYsql笔记2024年3月18

-- (1)删除数据库 drop database if exists t4; -- (2)创建数据库 create database if not exists t4; -- (3)使用数据库 use t4; -- 删除数据表 drop table if exists book; -- 在t3中创建数据...
珊瑚海的头像-北梦の博客珊瑚海1年前
01188

Python-pymysql删除

import pymysql zwy = pymysql.connect(host='localhost', user='root', password='123456789', db='world') cursor = zwy.cursor() zwy.commit() delete_sql = 'delete from student where sna...
珊瑚海的头像-北梦の博客珊瑚海12个月前
0271

Python-pymysql修改

import pymysql zwy = pymysql.connect(host='localhost', user='root', password='123456789', db='world') cursor = zwy.cursor() zwy.commit() update_sql = '''update student set sname = ...
珊瑚海的头像-北梦の博客珊瑚海12个月前
0171

Python-pymysql插入

import pymysql zwy = pymysql.connect(host='localhost', user='root', password='123456789', db='world') cursor = zwy.cursor() insert_many_sql = [('01', 'zwy', 'n'), ('02', 'yxj', 'n'...
珊瑚海的头像-北梦の博客珊瑚海12个月前
0131

Python-pymysql建表

import pymysql zwy = pymysql.connect(host='localhost', user='root', password='123456789', db='world') cursor = zwy.cursor() create_sql = '''create table student ( sid char(10), sna...
珊瑚海的头像-北梦の博客珊瑚海12个月前
0181

python课堂笔记

 
iu不错哦的头像-北梦の博客iu不错哦1年前
0181

python-6.7

import pymysql db=pymysql.connect(host='localhost',user='root',password='root',db='mysql') cursor=db.cursor() # sql='''create table student(sno char(10),sname varchar(20),primary k...
iu不错哦的头像-北梦の博客iu不错哦1年前
0161