|
-
May 27th, 2012, 03:25 PM
#1
Finding certain tables in MySQL
hello everyone.
I am trying to create a function by finding a "Characters" ID using a string.
So here is the basic concept, the user enters the name of the Character (a string), and the function looks in MySQL for the entered string, and if it finds the name, it will look for the ID in the same row. Then afterwards, the function returns to the ID of the character.
Howabouts would I get started on this? I am nowhere near familiar with using MySQL in C#.
-
May 27th, 2012, 03:37 PM
#2
Re: Finding certain tables in MySQL
- Learn SQL
- Use SELECT clause... Something like
Code:
SELECT ID FROM MyTable WHERE Character = 'some string'
where MyTable is a table, Character is "the Character (a string)", ID is an id
Victor Nijegorodov
-
May 27th, 2012, 03:39 PM
#3
Re: Finding certain tables in MySQL
 Originally Posted by VictorN
- Learn SQL
- Use SELECT clause... Something like
Code:
SELECT ID FROM MyTable WHERE Character = 'some string'
where MyTable is a table, Character is "the Character (a string)", ID is an id
Thank you!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|