You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# query = open('./query/select.hql').read() # you can read SQL from file.
# query = "SELECT id AS ID, type AS TYPE FROM user LIMIT 10 ORDER BY id ASC WHERE id >= 2489677657 AND type != 'PushEvent' AND type = IssuesEvent OR type = DeleteEvent" # Or you can write the query in one line.
query = "SELECT * FROM city WHERE CountryCode != 'AFG' ORDER BY Population, ID DESC LIMIT 10"
sql = HySQL(query).excute()
sql = HySQL()
sql.SELECT('*')
sql.FROM('city')
sql.WHERE("CountryCode != 'AFG'")
sql.ORDER_BY("Population, ID DESC")
sql.LIMIT(10)
# result = sql.excute(view=False)
# Same as
query = "SELECT * FROM city WHERE CountryCode != 'AFG' \