Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

in-function

SQL Server using wildcard within IN

May 3, 2023 by Tarik

How about: WHERE LEFT(job_no, 4) IN (‘0711’, ‘0712’, …)

Categories sql Tags in-function, sql, sql-server, wildcard Leave a comment

MySQL ORDER BY IN()

February 9, 2023 by Tarik

I think you may be looking for function FIELD — while normally thought of as a string function, it works fine for numbers, too! ORDER BY FIELD(field_name, 3,2,5,7,8,1)

Categories php Tags in-function, mysql, php, sql-order-by Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa