码迷,mamicode.com
首页 >  
搜索关键字:where    ( 20257个结果
工人打卡,正常情况执行数据-- 得到正班工时
ALTER PROCEDURE [dbo].[Hr_addNote2]asBEGIN update Hr_1 set 备注 ='正常 8 H' where 上班打卡_A CONVERT(datetime,CONVERT(char(10),日期时间,120) + ' 18:00:00',101) .....
分类:其他好文   时间:2015-03-13 18:07:26    阅读次数:140
Select的深入应用(2)
首先创建两张表。全连接全连接:在检索时指定多个表,将每个表用逗号分隔,这样每个表的数据行都和其他表的每行交叉产生所有可能的组合,这样就是一个全连接。所有可能的组和数即每个表的行数的乘积。或者:通常需要where子句来作限制条件,否则全连接将产生很多条数据左连接左连接:全连接给出FROM子句中所有表都...
分类:其他好文   时间:2015-03-13 18:06:26    阅读次数:86
mysql into outfile 总结
备份语法:select*from表名where条件intooutfile‘/tmp/表名.txt‘;#注意保存位置/tmp的权限;#注意备份文件的格式;恢复语法:loaddatainfile‘表名.txt‘intotable表名;#注意恢复时备份文件的位置要存放在mysql数据库data库目录下;范例:根据时间字段检索数据:备份outfile:sel..
分类:数据库   时间:2015-03-13 14:36:28    阅读次数:675
交叉熵代价函数
本文是《Neural networks and deep learning》概览 中第三章的一部分,讲machine learning算法中用得很多的交叉熵代价函数。1.从方差代价函数说起代价函数经常用方差代价函数(即采用均方误差MSE),比如对于一个神经元(单输入单输出,sigmoid函数),定义其代价函数为: 其中y是我们期望的输出,a为神经元的实际输出【 a=σ(z), where z=wx+...
分类:其他好文   时间:2015-03-13 14:27:18    阅读次数:293
Codeforces 514 D R2D2 and Droid Army(RMQ+二分)
An army of n droids is lined up in one row. Each droid is described by m integers a1,?a2,?...,?am, where ai is the number of details of thei-th type in this droid's mechanism. R2-D2 wants to destr...
分类:其他好文   时间:2015-03-13 14:24:35    阅读次数:152
创建数据库快照
use master if exists(select * from sysdatabases where name = '学生管理系统') drop database 学生管理系统 Create DataBase 学生管理系统 on ( name = '学生管理系统_DATA', filename = 'E:\临时数据库\学生管理系统_DATA.mdf', size = 10MB...
分类:数据库   时间:2015-03-13 10:54:01    阅读次数:193
Path Sum II
Path Sum II问题:Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.思路: dfs + 回溯我的代码:public class Sol....
分类:其他好文   时间:2015-03-13 10:41:06    阅读次数:121
交叉表(新松)
--来自新松的说明书//创建交叉表CreateCrossTable(Table,Cross,Where,Left,Top,Mid,LeftAs,TopNullAs,MidAs,SumAs,TopSep,LeftSort,TopSort:string);1.07 实例:CreateCrossDataS...
分类:其他好文   时间:2015-03-13 10:37:26    阅读次数:122
sql语句联表更新(从一个数据库中的一张表更新到另一个数据库的另一张表)
一、sql server数据库写法:update a set a.ksgmm=b.ksgmm,a.ksgm=b.ksgm,a.scztm=b.scztm,a.sczt=b.sczt from landsde.sde.jszb a,kyqcldb.dbo.kcl_ksjj b where a.nd=b...
分类:数据库   时间:2015-03-12 22:19:32    阅读次数:5819
通用表表达式(Common Table Expression)
问题:编写由基本的 SELECT/FROM/WHERE 类型的语句派生而来的复杂 SQL 语句。方案1:编写在From子句内使用派生表(内联视图)的T-SQL查询语句。方案2:使用视图方案3:使用通用表达式(CTE)比较:视图:通常用于分解大型查询,无需在临时表中复制或存储数据,数据库中可以重复使用...
分类:其他好文   时间:2015-03-12 22:06:18    阅读次数:157
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!