How to skip remaining statements in a loop block using continue statements?
Answer / Nalinaksh Punj Gautam
In MS SQL Server, you can use the CONTINUE statement within loops (WHILE, FOR, etc.) to exit the current iteration and move on to the next one.nnExample:nWHILE conditionnBEGINn -- coden IF condition_to_skip_iteration THENn CONTINUE;n -- more codenEND
| Is This Answer Correct ? | 0 Yes | 0 No |
Can an entity have two primary keys?
You are designing a database for your human resources department in the employee table, there is a field for social security number, which cannot contain null values if no value is given, you want a value of unknown to be inserted in this field what is the best approach?
what is Full Text Search ?
How many non clustered indexes there can be on table ?
What are the different types of stored procedures?
Does table partitioning improve performance?
What is raid? : SQL Server Architecture
how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A
What is default constraint in ms sql server?
Define tool Manage Statistics in SQL Server 2000 query ?
What is an entity-relationship diagram (erd)?
How to know whether our backup is succesfully taken?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)