摘要: 本章主要介绍基本的SELECT语句。充分理解这些基础知识十分重要,因为本章中的许多内 容不仅会出现在后面更复杂的实例里,同时也是日常SQL操作的一部分。 1.1检索所有行和列 问题 你有一张表,并且想查看表中的所有数据。 解决方案 用特殊符号对该表执行SELECT查询。 select * from 阅读全文
posted @ 2019-07-21 09:04 袁氏家谱网 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 一、数据表的查询(select) select 字段列表 [as 别名], * from 数据表名 [where 条件语句] [group by 分组字段] [order by 排序字段列表 desc] [LIMIT startrow,rownumber] 1、Select 字段列表 From 数据 阅读全文
posted @ 2019-07-18 14:49 袁氏家谱网 阅读(504) 评论(0) 推荐(0) 编辑
摘要: from:http://www.cnblogs.com/yubinfeng/archive/2010/11/02/1867386.html 一、基础 1、说明:创建数据库CREATE DATABASE database-name 2、说明:删除数据库drop database dbname3、说明: 阅读全文
posted @ 2019-07-18 14:36 袁氏家谱网 阅读(636) 评论(0) 推荐(0) 编辑
摘要: /* FileName:cls_access.php Summary: Access数据库操作类 ************************************* 使用范例: $databasepath='D:/wwwroot/cef/www/class/testdb.mdb'; //或者 阅读全文
posted @ 2019-07-14 17:10 袁氏家谱网 阅读(357) 评论(2) 推荐(0) 编辑
摘要: <?php /*** This file is just for an example of Php+Access. You can find these functions from http://www.php100.com/cover/php/1681.html */ /* ODBC stri 阅读全文
posted @ 2019-07-14 16:59 袁氏家谱网 阅读(1031) 评论(4) 推荐(0) 编辑
摘要: <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><! --省的字段是:province --市的字段是:city --县的字段是:area > <script type="text/ja 阅读全文
posted @ 2019-07-13 16:56 袁氏家谱网 阅读(430) 评论(1) 推荐(0) 编辑
摘要: body{margin:0;font-family:'Microsoft YaHei';background:url('../images/bg.png') ;}.box{width:100%;margin:0 auto;}.top{height:179px;background:url('../i 阅读全文
posted @ 2019-07-09 20:58 袁氏家谱网 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 外部脚本 脚本可放置与外部文件中: 外部文件:myScript.js 如需使用外部脚本,请在 <script> 标签的 src (source) 属性中设置脚本的名称: 实例 JavaScript 能够以不同方式“显示”数据: 使用 window.alert() 写入警告框 使用 document. 阅读全文
posted @ 2019-07-02 16:54 袁氏家谱网 阅读(246) 评论(0) 推荐(0) 编辑
摘要: PHP $_REQUEST是用于收集HTML表单提交的数据,PHP $_REQUEST属于PHP的超级全局变量。 以下实例显示了一个输入字段(input)及提交按钮(submit)的表单(form)。 当用户通过点击 "Submit" 按钮提交表单数据时, 表单数据将发送至<form>标签中 act 阅读全文
posted @ 2019-06-30 16:53 袁氏家谱网 阅读(802) 评论(0) 推荐(0) 编辑
摘要: 公式:update tbname set 字段1=concat(字段1,id); 实例: 比如先建一个varchar(10)型字段名为sbname,填上字符型内容 'sb',然后通过缀加ID号的方式,给字段的值改变为sb1,sb2,sb3,编码与ID号保持一致。 命令如下: UPDATE `表名` 阅读全文
posted @ 2019-06-28 11:06 袁氏家谱网 阅读(2799) 评论(0) 推荐(0) 编辑