Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Add codes in Athena Query

code_list = ['J9034', 'J9100', 'J9130', 'J9208', 'J9245', 'J9360', 'J9070', 'J9293', 'J1100', 'J9045', 'J9040', 'J9041', 'J9230', 'J9000', 'J9250', 'J9315', 'J9370', 'J9060', 'J7512', 'J9185', 'J0942', 'J9209', 'J0641', 'J1030']

def print_OR_px_query(code_list, code_type):
    for code in code_list:
        print "OR contains({code_type}_list, '{code}')".format(code_type=code_type, code=code)


print_OR_px_query(code_list, 'px')

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.