TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
jesper
NA
89
54.1k
Why dosent my OR operator dont work..
Sep 24 2013 6:21 AM
Hi
Can any of you tell me why my OR operator dosen't work ? :)
SqlCommand cmd = new SqlCommand("SELECT userinitials, computerName FROM UserHasComputer WHERE userinitials = @userinitials OR computerName = @computerName", conn);
cmd.Parameters.AddWithValue("@userinitials", SessionWrapper.userinitials);
cmd.Parameters.AddWithValue("@computerName", SessionWrapper.computerName);
the code dont care for the computername :)
Reply
Answers (
3
)
HOW: create a MySQL DB relationship for specific function
SQL Query :