Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9164

Re: SQL Query need to delete last 4 digits of Object Id in where condition

$
0
0

Hi,

 

you create a variable, and you concatenate the first digit of OBJET_ID and the value '%' and in your SELECT statement you put a LIKE

 

SELECT ... FROM .. WHERE OBJECT_ID LIKE '012345%'   means   012345*

 

 

regards

Fred


Viewing all articles
Browse latest Browse all 9164

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>