in reply to Re: select from mysql table based on two column match
in thread select from mysql table based on two column match

Actually no you misunderstand. I want to get two separate inputs from the user via terminal. Then I want to query a mysql table and return the rows where one column matches the first input and another column matches the second input in the same row.
  • Comment on Re^2: select from mysql table based on two column match

Replies are listed 'Best First'.
Re^3: select from mysql table based on two column match
by Anonymous Monk on Jan 25, 2017 at 06:18 UTC
    I want to get two separate inputs from the user via terminal. Then I want to query a mysql table and return the rows where one column matches the first input and another column matches the second input in the same row.

    madtoperl's code does match that description.