Need help in sql. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Need help in sql.

I am looking an answer for this question. How to create a column in sql that have same values for its entire row. I want to create column(Preid), and in this i just want to assign 'DZWA'(Some unqiue id related) but the thing is- I just want to assign only for first time not every time. And it should be same every time(automatic).

22nd Nov 2020, 10:29 AM
Dhruv Kohli
Dhruv Kohli - avatar
1 Answer
0
I guess you should add "Default" value for your colum of table
25th Nov 2020, 2:50 AM
Shakila Habibi Rezaei
Shakila Habibi Rezaei - avatar