sql - alternate for IN operator -


i have below query question alternate way use in clause in where clause, taking lot of time pull records. there 1000 records in table need 64 records few of them in clause below. query effecting performance.

select distinct t6.name    ord_job_code t6   t6.name in ('g23.08',                    'g10.01', 'g10.02', 'g10.03',                     'g10.04', 'g10.05', 'g10.06',                      'g10.07', 'g10.08','g10.09',                    'g8.01','g8.02','g8.03','g8.04') 

please me in solving performance issue.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -