现在位置: 首页 > 数据库 > 文章
2019年07月21日 数据库 ⁄ 共 6297字 评论关闭
Android采用关系型数据库SQLite3,它是一个支持SQL轻量级的嵌入式数据库,在嵌入式操作系统上有很广泛的应用,WM采用的也是SQLite3         关于过于、原理方面的东西在这篇文章里不会提到,但是如果你想能够快速的学会操作SQLite3,那这就是你要找的文章!         首先,我们看一下api,所有数据库相关的接口、类都在android.database和android.database.sqlite两个包下,虽然只有两个包,但是如果你英文不好或是太懒的话也...
阅读全文
2019年07月21日 数据库 ⁄ 共 3866字 评论关闭
一. 使用for循环游标:遍历所有职位为经理的雇员 1. 定义游标(游标就是一个小集合) 2. 定义游标变量 3. 使用for循环游标 declare -- 定义游标c_job cursor c_job is select empno, ename, job, sal from emp where job = 'MANAGER'; -- 定义游标变量c_row c_row c_job%rowtype; begin -- 循环游标,用游标变量c_row存循环出的值 for c_row in c_job loop dbms_output.put_line(c_row.empno || '-' ||...
阅读全文
2019年07月20日 数据库 ⁄ 共 1513字 评论关闭
  在main.xml中 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="vertical">       <TextView         android:id="@+id/nameinfo"       android:gravity="center_horizontal"       android:layout_marginTop="8dp"         ...
阅读全文
2019年07月20日 数据库 ⁄ 共 3456字 评论关闭
      在main.xml中:   <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="vertical"     android:gravity="center_horizontal">       <Button         android:id="@+id/insertBut"         android:layout_marginTop="8dp" ...
阅读全文
2019年07月19日 数据库 ⁄ 共 4666字 评论关闭
      在main.xml中:   <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="vertical"     android:gravity="center_horizontal">       <Button         android:id="@+id/insertBut"         android:layout_marginTop="8dp"  ...
阅读全文
2019年07月19日 数据库 ⁄ 共 3773字 评论关闭
        在main.xml中:   <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/mylayout"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="vertical"     android:gravity="center_horizontal">       <Button         android:id="@+id/findBut"         a...
阅读全文
2019年07月19日 数据库 ⁄ 共 3898字 评论关闭
    在main.xml中:   <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:id="@+id/mylayout"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="vertical"     android:gravity="center_horizontal">       <Button         android:id="@+id/findBut"         andro...
阅读全文
2019年07月16日 数据库 ⁄ 共 1895字 评论关闭
 表空间使用情况包括:查看表空间的名称及大小/查看表空间物理文件的名称及大小/查看回滚段名称及大小等等感兴趣的你可以参考下本文 --1、查看表空间的名称及大小  SELECT t.tablespace_name, round(SUM(bytes / (1024 * 1024)), 0) ts_size  FROM dba_tablespaces t, dba_data_files d  WHERE t.tablespace_name = d.tablespace_name  GROUP BY t.tablespace_name;  --2、查看表空间物理文件的名称及大小  SELECT tablespace_...
阅读全文
mysql语句使用大全 mysql5.0数据库安装文件 下载 mysql-front v3.2 下载 mysql-front v5.0 下载 mysql-front v5.0注册码 下载 mysql使用手册 下载 .net连接mysql所需的驱动(mysql-connector-net-5.0.8.1.rar) 下载 一、连接mysql。 格式: mysql -h主机地址 -u用户名 -p用户密码 1、 例1:连接到本机上的mysql。 a)在打开DOS窗口(操作提示:点击开始菜单中的运行,在文本框内输入cmd后回车)。 b)进入目录my...
阅读全文
2019年07月16日 数据库 ⁄ 共 2339字 评论关闭
今天项目中,用中断命令导入sql脚本,发现其报出编码错误,后来进过一番分析查询后,发现字符集utf8mb4在mysql 5.5.3之后才支持,顿时无语,随后改字符集编码为utf8。 注意:查询MySQL版本命令:                              mysql  -V; MySQL命令:                    1:使用SHOW语句找出在服务器上当前存在什么数据库: mysql> SHOW DATABASES; 2:2、创建一个数据库MYSQLDATA mysql> CREATE DATABASE MYSQLDATA; 3...
阅读全文