Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to delete this one in the db visualizer and not sure if I am writing the correct syntax:

enter image description here

I also see that the idsapusertype 25 is also linked to idsapusertypedetails 75 and 76. Can I use this one?

delete from sap_user_type_details where idsapusertypedetails = 77

or

delete from sap_user_type_details where idsapusertype = 25
share|improve this question

1 Answer 1

up vote 2 down vote accepted

It should be delete from sap_user_type_details where idsapusertypedetails = 77 since idsapusertype = 25 condition matches other records.

For best results, delete from sap_user_type_details where idsapusertypedetails = 77 and idsapusertype = 25

share|improve this answer
    
ah ok you can mix the two then? –  tintincutes Jan 6 '11 at 17:41
    
ey, that was easy. Thanks:-) –  tintincutes Jan 6 '11 at 17:45
    
but i have problems the other value was still there.. and if I click on it, the software hangs:-( –  tintincutes Jan 6 '11 at 18:54
    
@tintin how do you mean the other value was there ? –  Sathya Jan 7 '11 at 3:30
    
thanks for helping. I was able to figure it out. I've seen that there are other tables which are link so I also have to delete it first. Now it's working. –  tintincutes Jan 11 '11 at 10:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.