摘要: 现在来设计一个能描述“图书”与“作者”的关系的表结构,需求是 此时你会发现,用之前学的外键好像没办法实现上面的需求了,因为 当然你更不可以像下面这样干,因为这样就你就相当于有多条书的记录了,太low b了,改书名还得都改。。。 那怎么办呢? 此时,我们可以再搞出一张中间表,就可以了 这样就相当于通过 阅读全文
posted @ 2019-01-08 20:07 裸奔的小鸵鸟 阅读(2363) 评论(0) 推荐(0) 编辑
摘要: #-*-coding:utf-8-*- #__author__ = "logan.xu" import sqlalchemy from sqlalchemy import create_engine,func from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column,Intege... 阅读全文
posted @ 2019-01-08 19:17 裸奔的小鸵鸟 阅读(395) 评论(0) 推荐(0) 编辑
摘要: #-*-coding:utf-8-*- #__author__ = "logan.xu" import sqlalchemy from sqlalchemy import create_engine,func from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column,Intege... 阅读全文
posted @ 2019-01-08 18:34 裸奔的小鸵鸟 阅读(479) 评论(0) 推荐(0) 编辑
摘要: #-*-coding:utf-8-*- #__author__ = "logan.xu" import sqlalchemy from sqlalchemy import create_engine,func from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column,Integer... 阅读全文
posted @ 2019-01-08 18:26 裸奔的小鸵鸟 阅读(1652) 评论(0) 推荐(0) 编辑
摘要: #-*-coding:utf-8-*- #__author__ = "logan.xu" import sqlalchemy from sqlalchemy import create_engine,func from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column,In... 阅读全文
posted @ 2019-01-08 15:57 裸奔的小鸵鸟 阅读(924) 评论(0) 推荐(0) 编辑
摘要: #-*-coding:utf-8-*- #__author__ = "logan.xu" import sqlalchemy from sqlalchemy import create_engine,funcfrom sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column,Int... 阅读全文
posted @ 2019-01-08 15:34 裸奔的小鸵鸟 阅读(2373) 评论(0) 推荐(0) 编辑
摘要: #-*-coding:utf-8-*- #__author__ = "logan.xu" import sqlalchemy from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column,Integer,S... 阅读全文
posted @ 2019-01-08 12:40 裸奔的小鸵鸟 阅读(3427) 评论(0) 推荐(2) 编辑
摘要: #-*-coding:utf-8-*- #__author__ = "logan.xu" import sqlalchemy from sqlalchemy import create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column,Integer,S... 阅读全文
posted @ 2019-01-08 12:31 裸奔的小鸵鸟 阅读(980) 评论(0) 推荐(0) 编辑
摘要: 1 #-*-coding:utf-8-*- 2 #__author__ = "logan.xu" 3 4 5 import sqlalchemy 6 from sqlalchemy import create_engine 7 from sqlalchemy.ext.declarative import declarative_base 8 from sqlalchemy... 阅读全文
posted @ 2019-01-08 12:04 裸奔的小鸵鸟 阅读(200) 评论(0) 推荐(0) 编辑