Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def findSimilarArticles(articleId,n):
- con=connection()
- cur=con.cursor()
- num1=int(articleId)
- sql_query='''SELECT articles.id, articles.summary
- from articles
- where articles.id=%s'''
- cur.execute(sql_query,(num1))
- results=cur.fetchall()
- return(results)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement