Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MySQLにユーザー名やメールアドレスなどの情報を含む行があり、ユーザー名フィールドに基づいて行のIDを検索したいと思います。ユーザー名フィールドに基づいてIDを見つける方法に関するアイデアはありますか?
SELECT id FROM users WHERE username = 'NStorm';
これは非常に基本的なSQLです。
select id from your_table where username = 'foo'