首页 软件开发 代码片段 ( Page 668 )

代码片段 8064

#Ruby
ruby读取http文件保存到本地

require 'open-uri' File.open('/home/user/1.jpg', 'wb') {|f| f.write(open('http://tp1.sinai…

2014-10-23 330

#SQL
SQL Server 2005 数据库中的日期数据排序

SELECT email_address AS EmailAddress, CONVERT(nvarchar, lastcontact, 101) AS Last_Contact …

sql
2014-10-23 939

#SQL
oracle去除重复数据sql

delete table1 where rowid not in ( select max(rowid) from table1 group by col1 ,col2 )

sql
2014-10-23 866

#Python
批量提取word格式的调查表信息

#coding:utf-8 import os import win32com from win32com.client import Dispatch, constants fr…

2014-10-23 627

#APS/Basic
VBScript解压缩单个zip格式文件

Dim objShell Set objShell = CreateObject("Shell.Application") objShell.NameSpace("D:\tmp")…

2014-10-23 847

#SQL
T-SQL 解决"易语言难题"

declare @i int declare @j int declare @str varchar(20) set @i = 123 while @i < 999/3 be…

sql
2014-10-23 887

#SQL
oracle 常用语句

--查询表的大小 select t.owner, t.segment_name, (sum(t.blocks) * 8) / 1024 || 'M' as S, t.segment…

sql
2014-10-23 420

#Python
python版实现文本左右对齐排版

# python版实现文本左右对齐排版 # 题目来源: http://www.bathome.net/thread-1246-1-1.html # 依山居 7:17 2015/11…

2014-10-22 498

#SQL
oracle查询表空间文件所在路径

select * from dba_data_files 查询数据库内所有的数据字典 select * from DICT

sql
2014-10-22 563

#Ruby
Ruby 调用 Windows Excel 来生成电子表格

require 'win32ole' excelobj = WIN32OLE.new("excel.application") excelobj['Visible']=TRUE e…

2014-10-22 762

#Ruby
Ruby 检查 HTTP 回应的错误和重定向

require 'net/http' def get_web_document(url) uri = URI.parse(url) response = Net::HTTP.get…

2014-10-22 517

#Objective-C
UITextView/UITextField限制字数

+ (void)limitTextFieldLength:(UITextField *)textField maxLength:(NSInteger)maxLength { NSS…

2014-10-22 398