模型如下: class Publisher(models.Model): name = models.CharField(max_length=30) address = models.CharField(max_length=50) city = models.CharField(max_length=60) state_province = models.CharField(max_length=30) country = models.CharField(max_length=50) we
一.PowerDesigner生成sql问题 生成sql的方法是 Database -->Generate Database (Ctrl + G ) 但是提示 Could not load VBScript engine. Check VBScript installation. Generation aborted due to errors detected during the verification of the model. 检查了好久 发现将check model 去掉就可以了!其
转:http://www.cnblogs.com/the7stroke/archive/2012/04/22/2465597.html using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; using System.Data; public class SQLHelper { /// <summary> /// 插入单个实例 /