摘要:
数据有Test表,表里有id,name,ip_address,last_time四个字段 通常查询写法,返回结果会把id,name,ip_address,last_time四个字段都返回 public List selectList(Test test) { List list = testMapp 阅读全文
摘要:
开发有时需要动态创建表,创建完成后需要动态选择model对应的表,该需求如何实现 1、model层 TestBlock为了动态创建表、getBlockModel为了动态选择表 from django.db import models # Create your models here. class 阅读全文