Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Unique records

$
0
0

Hi i am inserting rows to databse. I have two fields called position and Machine_num . i want position as unique based on machine_num. for example Machine_num as dropdownlist. suppose machine_num has  Sva_1,Sva_2,...etc. position can be 1 in Sva_1 and Sva_2...etc but not  same number in same Machine_num. Can i have any sample code for this.

position                                  Machine_num

........................                              .............................

1                                                  Sva_1

1                                                  Sva_2

1                                                  Sva_3

1                                                   Sva_1(wrong)


Viewing all articles
Browse latest Browse all 23244

Trending Articles



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