• 홈
IOTinfra's blog
mirinae.maru's site

python

Python mysql like 검색

mirinae.maru2022/08/22
import sqlalchemy as db


engine = engine = db.create_engine("mysql+pymysql://아이디:패스워드@아이피:포트/데이터베이스이름",encoding='utf8')
conn = engine.connect()
metadata = db.MetaData()

# select stock
stockTable = db.Table('stock', metadata, autoload=True, autoload_with=engine)
selectQuery = db.select([stockTable])\
    .where(stockTable.columns.code.like('3575%'))
print(selectQuery)


# 쿼리 실행
result_proxy = conn.execute(selectQuery)
result_set = result_proxy.fetchall()

for obj in result_set:
    print(obj[0], obj)
Java, Python like search, like 검색, mysql like, python, sqlalchemy like
Previous Articles

최신 글

  • JSP 파일 캐시 방지
  • The uploaded file could not be moved to wp-content/uploads/2023/01.
  • SpringBoot Port 변경
  • jenkins, Tomcat return http status error: 401 에러
  • jenkins 빌드할때 Unsupported class file major version 63 에러 발생
  • Python mysql like 검색
  • Python Mysql 데이터 삭제

Categories

  • expandBigData (15)
    • expandElasticsearch (1)
    • expandHadoop (6)
    • expandHBase (5)
    • expandMapReduce (0)
    • expandMRUnit (0)
    • expandZooKeeper (2)
  • expandDatabase (63)
    • expandActiveSpaces (7)
    • expandMariaDB (10)
    • expandMongoDB (3)
    • expandMySQL (20)
    • expandOracle (23)
  • expanddevelop Tool (24)
    • expandEclipse (19)
    • expandemacs (0)
    • expandjenkins (4)
    • expandvi (1)
  • expandhtml5 (93)
    • expandagGrid (7)
    • expandAnuglarJS (25)
    • expandCSS (3)
    • expandJavascript (27)
    • expandjQuery (24)
    • expandRealGrid (3)
  • expandJava (91)
    • expandGradle (0)
    • expandJDK (10)
    • expandJUnit (10)
    • expandLog (9)
    • expandMaven (21)
    • expandSpring (20)
    • expandWebsquare (0)
  • expandLinux (35)
    • expandbash (1)
  • expandPython (4)
  • expandUtility (28)
    • expandSublime (5)
    • expandWordpress (18)
    • expand영어공부 (5)
  • expandWAS (7)
    • expandJetty (0)
    • expandTomcat (7)
  • expand문서작업 (2)
    • expand엑셀(Excel) (2)
    • expand워드(doc) (0)
    • expand파워포인트(ppt, pptx) (0)

메타

  • 로그인
  • 엔트리 피드
  • 댓글 피드
  • WordPress.org

태그

#AngularJS ng-style #AngularJS ng-style 조건문 #change avada theme logo #delete thumnail #gridstack drag & drop #gridstack 예제 #hichart #highchart #jquery on #ng-style #ng-style 함수 #NodeJS 윈도우 설치 #npm 윈도우 설치 #realgrid checkbox #realgrid searchItem #realgrid statusbar #realgrid 체크박스 #Spring RESTful #Spring RESTful 클라이언트 #spring 스케쥴링 #Spring 웹서비스 #two gridstack example #동적 이벤트 추가 #썸네일 삭제 #아바다 테마 로고 변경 #아바다 특성이미지 제거 #워드프레스 Avada 테마 Agency데모에 메뉴 추가 #워드프레스 아바다 Contact Info 변경 #워드프레스 아바다테마 홈페이지 변경 agGrid angular.copy angular.fromJson 사용법 angular.toJson angularjs angular 객체 복사 checkbox jenkins jquery ng-disabled port python spring 스타일 자바스크립트 forEach 정렬

최신 댓글

  • 1234 - MySQL 백업 및 복구
  • 1234 - MySQL 백업 및 복구
© 2023 IOTinfra's blog. All rights reserved.
Flato by ThemeMeme