I want to check weather my database contain row or not?
and if it contain then i want to delete that row. this process can be done during run time of page.
paresh_thummar 0 Newbie Poster
Recommended Answers
Jump to PostWhat exactly the issue that you are experiencing? are you asking DB query?
Jump to PostI think you are asking the DB query to do this. Well, I guess below is what you are looking for...
--In SQL Server IF EXISTS(SELECT 1 FROM Student WHERE StudentID = 101) BEGIN DELETE FROM Student WHERE StudentID=101 END
All 6 Replies
Knvn 14 Junior Poster in Training
SiluSilu 0 Newbie Poster
paresh_thummar 0 Newbie Poster
Knvn 14 Junior Poster in Training
paresh_thummar 0 Newbie Poster
Knvn 14 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.