码迷,mamicode.com
首页 >  
搜索关键字:query    ( 12481个结果
thinkphp5源码解析(1)数据库
前言tp5的数据库操作全部通过Db类完成,比较符合国人的习惯,比如简单的Db::query()、Db::execute(),还有复杂的链式操作Db::table(‘user‘)->where(‘id=1‘)->select(),下面就通过源码来了解其工作流程看代码之前,先看看涉及到的类都有哪些,tp5的数据库相关的类有以下几个:Db(用户接口)Conne
分类:数据库   时间:2017-12-13 17:29:30    阅读次数:203
java 实现Put request
http请求有八中方法GET,POST,HEAD,PUT,DELETE,OPTIONS,TRACE,CONNECT,GET和POST比较常用,由于项目开发需要,开始自己研究PUT请求方法,其实和POST请求方法差不多。下面来讲一下常用的请求方法和不常用的PUT方法。 一、HEAD方法跟GET方法相同 ...
分类:编程语言   时间:2017-12-13 17:09:03    阅读次数:284
Powershell连接多服务器执行SQL脚本
$query = " select @@servername" $csvFilePath = "c:\Scripts\queryresults.csv"   $instanceNameList = get-content c:\Scripts\serverli
分类:数据库   时间:2017-12-13 16:57:10    阅读次数:144
nginx中fastcgi_params配置参数
Nginx 的 fastcgi 模块提供了 fastcgi_param 指令来主要处理这些映射关系,下面 Ubuntu 下 Nginx 的一个配置文件,其主要完成的工作是将 Nginx 中的变量翻译成 PHP 中能够理解的变量。 在php可打印出上面的服务环境变量 如: [转自] https://s ...
分类:其他好文   时间:2017-12-13 16:54:34    阅读次数:205
12月13日help_method,session, find_by.的理解
Declare a controller method as a helper. For example, helper_method :link_to def link_to(name, options) … end makes the link_to controller method avai ...
分类:其他好文   时间:2017-12-13 15:02:24    阅读次数:131
mongodb学习之:mongo安装以及远程访问
在linux下通过apt-get install mongo的方式一键式安装mongo 安装后mongo的配置文件位于/etc/mongodb.conf. 里面有mongo的各项配置,文件内容如下:重要的主要有下面几项: 1 dbpath:存放数据库文件的地方 2 logpath: 存放log的地方 ...
分类:数据库   时间:2017-12-13 02:16:26    阅读次数:238
评论列表显示及排序,个人中心显示
@app.route('/usercenter/') def usercenter(user_id): user = User.query.filter(User.id == user_id).first() context = { 'username': user.username, 'wenda... ...
分类:编程语言   时间:2017-12-13 02:00:24    阅读次数:183
052-126&127
Identify the two situations in which the alert log file is updated with details. (Choose two.)A. Running a query on a table returns "ORA-600: Internal ...
分类:其他好文   时间:2017-12-12 22:19:26    阅读次数:153
JQuery的ajax方法获取返回值得到了值还包含了不要的html源码 (Ajax相关知识)
因为后台使用了response.Write();这个方法,当输出完了以后,没有结束掉会继续输出,所以需要用到response.End();这样问题就解决了 jquery的ajax 除了通过url传值,后台用respon.querystring[""]来获取 还可以通过data 中的数据 传值,后台用 ...
分类:Web程序   时间:2017-12-12 22:18:23    阅读次数:237
vue路由传参query和params的区别
1、用法 A、query要用path来引入(用name来引入也可以),接收参数都是this.$route.query.name。 B、params要用name来引入,接收参数都是this.$route.params.name。 2、效果 A、query类似于ajax中get传参,即在浏览器地址栏中显 ...
分类:其他好文   时间:2017-12-12 21:35:44    阅读次数:138
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!