ICode9

精准搜索请尝试: 精确搜索
  • Sql Server存储过程中游标的使用2022-05-30 17:03:53

    Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 table1结构如下 id int name varchar(50) declare @id int declare @name varchar(50) declare cursor1 cursor for --定义游标cursor1 select * from tab

  • python数据库连接--mysql(pymysql)2019-08-28 11:02:12

    --------安装  pip install pymysql   -------主要方法 connect(): commit():事务提交,如果没有设为自动提交,则每次操作后必须提交事务,否则操作无效 rollback():操作出错时,可以用这个函数回滚到执行事务之前 --------------.简单示例:连接数据库 1.数据库中查询出的数据 SELECT book_i

  • SQL游标2019-07-02 10:49:18

    概括来讲,SQL的游标是一种临时的数据库对象,即可以用来存放在数据库表中的数据行副本,也可以指向存储在数据库中的数据行的指针。游标提供了在逐行的基础上操作表中数据的方法。 游标的一个常见用途就是保存查询结果,以便以后使用。游标的结果集是由SELECT语句产生,如果处理过程需要

  • sqlite占位符的事例2019-04-25 09:42:32

    import sqlite3class Demo01: def __init__(self): self.conn=sqlite3.connect("sql_demo_001.db") self.cursor1=self.conn.cursor() self.cursor1.execute("select * from table_001 where name= ? and id= ? ",('ssss�

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有