from sqlalchemy import create_engine, text pg_engine = create_engine('postgresql://admin:trajet6640@192.168.0.87:5432/apdb_master') with pg_engine.connect() as conn: result = conn.execute(text("SELECT apc, product_name, company_name, main_ingredient FROM apc WHERE product_name LIKE '%아시엔로%' LIMIT 20")) print('아시엔로 검색 결과:') for row in result: print(f' APC: {row[0]} | {row[1]} | {row[2]} | {row[3]}')