Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. def findSimilarArticles(articleId,n):
  2. con=connection()
  3. cur=con.cursor()
  4. num1=int(articleId)
  5. sql_query='''SELECT articles.id, articles.summary
  6. from articles
  7. where articles.id=%s'''
  8. cur.execute(sql_query,(num1))
  9. results=cur.fetchall()
  10. return(results)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement