Quantcast
Viewing all articles
Browse latest Browse all 6

To increase number and combine data using sql

hi,

I want to create a sql that generate a number of 4 digits with combination of character input.The number will increase if it is new record.

for example :

category = ‘P’

so the output will be :  P-0001

for the next record the output will be : P-0002

any ideas?

thanks.

 


Viewing all articles
Browse latest Browse all 6

Trending Articles



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