关于数据库查询更新的有关问题

WBOY
Release: 2016-06-13 12:35:56
Original
979 people have browsed it

关于数据库查询更新的问题
表结构:
id
order_id
name
address
qty
product_number
product
logistics_id

样例数据
id---order_id----name------address----qty----product----logistics_id
1-----000001----wanggang----shenzhen----10----iphone-----?
2-----000002----wanggang----shenzhen----5-----ipod-------?
3-----000003----lier--------beijing-----5-----ipad-------?
4-----000004----zhaosi------guangzhou---8-----ipad-------?
5-----000005----lier--------beijing-----4-----iphone-----?


我们会每个下载下个订单文件上传到我的系统里面,除了logistics_id字段以外,其它内容都是这个上传文件的内容。现在的需求是当我们把这些订单导入数据库的时候,需要给每个邮件编个编码(快递号,logistics_id字段),人名和地址一样的就要给同一个编码(同一个快递),请问怎么样在导入的时候给人名和地址一样的记录编同一个编码呢??如果不能在导入的时候编码,那有什么方法比较好呢?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!