用于查找产品ID的SQL命令 [英] SQL Command for finding the product id

查看:166
本文介绍了用于查找产品ID的SQL命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要获取的SQL命令是什么:

问题:查找产品编号

给出:
产品名称=玻璃
产品长度= 12英尺
产品厚度= 12毫米
productcolor = clear

What is the SQL command for getting:

Problem: Find product id

Given:
productname = glass
productlength = 12 ft
productthickness = 12 mm
productcolor = clear

推荐答案

我们无法完全回答该问题

我们不知道您的数据库是什么样子,或者信息的组织方式.如果全部都在一个表中,则:

We can''t answer that question exactly

We have no idea what your database looks like, or how the information is organised. If it is all in a single table, then:

SELECT productId FROM myTable WHERE productname= 'glass' AND productlength=12 AND productthickness=12

将是一个开始.


这篇关于用于查找产品ID的SQL命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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