如何从一个表(产品)到另一个表(addcart)的ID作为master_id检索? [英] How to retrieveID from one table(product) to another table(addcart) as master_id?

查看:59
本文介绍了如何从一个表(产品)到另一个表(addcart)的ID作为master_id检索?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮忙吗?


Can anyone help?


How to retrieve ID from one table(product) to another table(addcart) as master_id?

推荐答案

问题可以更加清楚,因为我了解您要插入的product_id PRODUCT表作为master_id进入ADDCART表

为此,您可以按照以下不同方式进行采样:

在应用程序中,您需要从前端传递产品ID,您可以使用insert命令将其插入数据库.

请更清楚地说明问题.....
Question can be more clear as i understand you want to insert product_id of a PRODUCT table into ADDCART Table as master_id

For this you can following different ways for sample:

From application you need to pass product id from front end you can insert it into database with insert command.

Please be more clear in question.....


这篇关于如何从一个表(产品)到另一个表(addcart)的ID作为master_id检索?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆