title: How can I run a command with values ​in python sqlite3?
body: <pre><code> if message.content.startswith(&quot;!Cooltime&quot;):
          con = sqlite3.connect(&quot;Hamal.db&quot;)
          cur = con.cursor()
          cur.execute(f&quot;SELECT CoolTime FROM UserInfo WHERE DiscordId = {message.author.id}&quot;)
          exist = cur.fetchone()
          #------here--------
          if exist == 100:
              print(1)
          if exist == 200:
              print(2)
          #-----------------
  </code></pre>
  <p>I select &quot;Cooltime&quot;columns where the &quot;DiscordID&quot; is the message author's DiscordId
  but, it doesn't working at &quot;here&quot;</p>
  <p>And here is the sqlite3 Db</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>CoolTime</th>
  <th>DiscordID</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>100</td>
  <td>(user's id 1)</td>
  </tr>
  <tr>
  <td>200</td>
  <td>(user's id 2)</td>
  </tr>
  </tbody>
  </table>
  </div>