![](/img/trans.png)
[英]How do I get last record from a mysql column through php where several other query is running
[英]How i get the row from mysql database through where column value
我想從兩個表中獲取行值,即
sale(id,name invoiceno,saleprice,total)
和 invoice(id,invoiceno,saledisc,disctotal)
我希望兩個表中的invoiceno
常見invoiceno
。
高度贊賞任何人的合作。
使用連接從2湯匙中選擇值
$sq="SELECT s.*, i.*
FROM sale s
INNER JOIN invoice i
ON s.invoiceno=i.invoiceno";
盡管這是基礎知識,但我會為您提供幫助,因此在提出任何其他問題之前,最好考慮一下在線SQL課程。
SELECT * FROM SALE INNER JOIN INVOICE ON sale.invoiceNo = invoice.invoiceNo
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.