adspace


How to write a script for upate the data in prod , i have
50000 row are there

Answer Posted / kumari

--table name = production
--coloum name = description(one column name)
--categoryname is another column name


update dbo.production
set
discription='xxxxxxxxxxx'
where [check condition]
categoryname='vitamins'

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

1025


What is the primary use of the model database?

1152


How to provide default values to function parameters?

1264


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1202


What is a scheduled job or what is a scheduled task?

1041


Explain system functions or built-in functions? What are different types of system functions?

1068


What is self contained sub query?

1143


What is acid mean in sql server?

1248


If any stored procedure is encrypted, then can we see its definition in activity monitor?

1075


What is temporary table in sql server? Why we use temp table?

1024


What are the different subsets of sql?

1657


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1218


What is normalization and what are the advantages of it?

1058


Can we do dml on views?

1040


How to remove duplicate rows from table except one?

1094