里拉de跳跳糖
2018-01-14 09:51nodejs中sequelize的create方法默认执行语句中的id,如何去掉
5module.exports=db.define('dnt_topics',{
tid:{
type:Sequelize.INTEGER,
field:'tid',
primarykey:true,
autoIncrement:false,
},
创建的model中有tid主键,但是在查询时,会默认被加上一个id的是怎么回事?
从命令行的调试信息中看到自动加了一列(id),但是实际的数据库中是不存在id这一列的。
- 点赞
- 回答
- 收藏
- 复制链接分享
2条回答
为你推荐
- 如何解密在nodejs中加密的golang中的AES256位密码?
- cryptography
- aes
- encryption
- node.js
- 1个回答
- 从Hyperledger Fabric Node SDK中的函数InvokeChaincode()获取链码调用方ID
- blockchain
- hyperledger
- node.js
- 2个回答
- 如何控制NodeJS中的应用程序流
- javascript
- asynchronous
- synchronous
- node.js
- php
- 2个回答
- nodejs工程中的index.html文件的外部导入的css和script不起作用了
- typejs
- angular.js
- css
- node.js
- javascript
- 6个回答
- nodejs的app.get()方法
- express
- node.js
- 1个回答
换一换