我正在尝试从我创建的表中提取这些信息。 P_DESCRIPT,P_INDATE,P_PRICE,V_CODE,我的PRODUCTS表中有供应商代码21344,但是收到错误消息。下面是我的脚本和错误消息。我还附上了一张桌子的照片。有什么建议吗?
SELECT * FROM PRODUCT
SELECT P_DESCRIPT, P_INDATE,P_PRICE, V_CODE
WHERE V_CODE= 21344
Error starting at line : 1 in command -
SELECT * FROM PRODUCT
SELECT P_DESCRIPT, P_INDATE,P_PRICE, V_CODE
WHERE V_CODE= 21344
Error at Command Line : 3 Column : 1
Error report -
SQL Error: ORA-00933: SQL command not properly ended
00933. 00000 - "SQL command not properly ended"
*Cause:
*Action:
答案 0 :(得分:0)
您可以选择以下所有内容:
SELECT * FROM PRODUCT;
要仅选择供应商代码21344,请询问:
SELECT * FROM PRODUCT WHERE V_CODE = 21344;