日期:2014-05-18 浏览次数:20771 次
select top 1 id from purchase_customer_balance where right(invoice_no,5) = '-' + datename(yy,getdate()) and customer_code='135' order by cast(parsename(replace(invoice_no , '-' , '.'),2) as int) desc
select top 1 id from purchase_customer_balance where customer_code='135' order by id desc
select top 1 id
from purchase_customer_balance
where right(invoice_no,5) = '-' + datename(yy,getdate()) and customer_code='135'
order by cast(parsename(replace(invoice_no , '-' , '.'),2) as int) desc
select top 1 id
from purchase_customer_balance
where customer_code='135'
order by id desc