1.2.3.4.Using LIKE and WILDCARDS

  • 查詢字串中含有某關鍵字的資料

    • %: 可以表示多個未知字元

      select * from StudentsDetails where firstname like 'student%';

    • _: 可以表示一個未知字元

      select * from StudentsDetails where firstname like 'student_';

Last updated

Was this helpful?