Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Create a table with

$
0
0

Hi

Need to get a script to create only the structure of a table including the two following fields :

field1 (int) and field2 (varchar)

Field1 will be incremented based on the field2 value it means when we will insert the 8 values of field2 we will get this result below

field1field2
1A
2A
3A
1B
2B
3B
4A
5A
4B

Thx for your help


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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