CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2012
    Posts
    27

    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#.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: Finding certain tables in MySQL

    1. Learn SQL
    2. 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

  3. #3
    Join Date
    May 2012
    Posts
    27

    Re: Finding certain tables in MySQL

    Quote Originally Posted by VictorN View Post
    1. Learn SQL
    2. 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
  •  





Click Here to Expand Forum to Full Width

Featured