- 使用 FinalShell 进行远程连接(ssh 远程连接 Linux 服务器)
编程经验分享
开发工具服务器sshlinux
目录前言基本使用教程新建远程连接连接主机自定义命令路由追踪前言后端开发,必然需要和服务器打交道,部署应用,排查问题,查看运行日志等等。一般服务器都是集中部署在机房中,也有一些直接是云服务器,总而言之,程序员不可能直接和服务器直接操作,一般都是通过ssh连接来登录服务器。刚接触远程连接时,使用的是XSHELL来远程连接服务器,连接上就能够操作远程服务器了,但是仅用XSHELL并没有上传下载文件的功能
- golang实现从服务器下载文件到本地指定目录
余生逆风飞翔
golang服务器开发语言
一、连接服务器,采用sftp连接模式packagemiddlewaresimport("fmt""time""github.com/pkg/sftp""golang.org/x/crypto/ssh")//建立服务器连接funcConnect(user,password,hoststring,portint)(*sftp.Client,error){var(auth[]ssh.AuthMethod
- WORD批量转换器MultiDoc Converter
uolian
工作word
WORD批量转换器MultiDocConverterhttps://www.52pojie.cn/thread-1318745-1-1.html可批量将doc、docx等文件格式转成doc、docx、pdf、rtf、txt、html、epub等格式。安装包下载地址:https://wws.lanzouj.com/irvVbiz0pkd最终下载文件打包地址(未作成单文件,不确定是否可以直接使用):h
- 使用 Python 和 Aria2 异步下载和解析磁力链接元数据教程
日入百万
python
磁力链接(MagnetLinks)是一种流行的用于共享文件的链接格式。与传统的种子文件不同,磁力链接直接包含文件的哈希值,使得用户无需下载种子文件就能开始下载文件。在这篇教程中,我们将介绍如何使用Python和Aria2异步下载和解析磁力链接的元数据,并提取出文件的详细信息。步骤一:准备工作在开始之前,请确保你已经安装了以下工具和库:1.**Aria2**:一个轻量级多协议和多源命令行下载工具。你
- Linux下载压缩包:tar.gz、zip、tar.bz2格式全攻略
promise524
Linuxlinux运维服务器后端bashshell
在Linux中,下载各种格式的压缩包(如.tar.gz、.zip、.tar.bz2等)通常使用命令行工具如wget和curl。1.使用wget下载压缩包wget是Linux中最常用的文件下载工具,支持HTTP、HTTPS、FTP等协议,可以直接从命令行下载文件。基本命令:wget[URL]下载.tar.gz文件wgethttps://test.com/archive.tar.gz此命令将从指定的U
- Android移动测试入门—— adb 测试环境搭建及常用命令
蘑菇头上不长草
Androidadbpython爬虫requestandroid
目录搭建abd环境安装jdk并配置环境变量安装adb并配置环境常用命令连接设备1.打开开发者模式2.USB连接移动设备3.查看连接设备4.进入手机5.adbpush电脑文件上传到手机6.adbpull从手机里下载文件到电脑7.adbinstall安装app8.查看手机上安装的所有软件(查看包名)9.卸载app10.monkey测试11.logcat搭建abd环境adb环境搭建主要分为2部分,一是j
- android 发一个可以下载的的android studio历史版本
花花鱼
androidandroidstudioandroidide
1、AndroidStudio下载文件归档|AndroidDevelopers2、上个图:
- sftp上传和下载文件
王小工
Linuxlinux
SFTP(SSHFileTransferProtocol)是一种基于SSH协议的文件传输协议,它提供了文件传输过程中的加密和验证功能,确保了数据的安全性。SFTP上传和下载文件的过程可以通过多种方式实现,包括使用SFTP客户端软件、命令行工具或编程SDK等。以下是SFTP上传和下载文件的基本步骤和方法:一、SFTP客户端软件操作软件选择与安装:FileZilla:一款广受欢迎的开源FTP客户端,支
- 如何搭建FTP服务器?
朝畫夕拾
FTP服务器可以方便的供用户上传,下载文件,对于我们日常的教学,工作都有着很大的帮助,今天小编就为大家讲解下如何在搭建FTP服务器希望对大家有所帮助。工具/原料电脑一台方法/步骤1首先我们创建一个用户账户用于登录FTP进行操作。右键点击桌面的我的电脑点击选择管理选项,进入管理界面打开本地用户和组选项,我们可以看到列表中的用户选项2然后右键用户选项,在下拉菜单中选择新用户,开始建立我们的用户,填写用
- Linux搭建Java环境之jdk1.8安装图文教程
yundashi168
Java教程阿里云教程
Linux的使用相信大家都要用到java吧!在使用java前我们得先安装jdk以及配置环境变量等工作;下面小编给大家分享关于Linux安装jdk的详细步骤:【Linux服务器远程连接工具】xshell6快捷下载,xftp6快捷下载温馨提示:xshell负责编写和执行Linux命令,就是大家都知道的命令行。xftp负责上传和下载文件。两款软件搭配使用。还有一款免费的国产的linux远程连接客户端—f
- curl和ping
G丶AEOM
网络
curl获取页面内容,ping测试连通curl和ping是两个在网络环境中常用的命令行工具,但它们的目的和应用场景有很大的不同。curl用途:curl是一个命令行工具,用于传输数据,支持多种协议,包括HTTP、HTTPS、FTP等。它通常用于测试或访问Web服务,如RESTAPI、下载文件、上传数据等。场景:测试Web服务的响应和行为。下载或上传文件到Web服务器。发送数据到Web服务,如表单提交
- a标签无法下载.txt.png.jpg.pdf等文件解决方案
冬懂懂动
pdf前端javascript
对于浏览器无法识别的文件,可以通过a标签+download属性达到点击下载的效果对于浏览器可以识别的文件,如果txt,图片文件等,点击a标签默认会直接打开文件即使配置download属性也无效对于直接打开文件的情况,这里附上我自己的解决办法,可以实现让浏览器不打开文件,直接下载constdownloadFile=(url='',fileName='下载的文件')=>{//使用xhr下载文件cons
- linux提权:从入门,Linux提权:从入门到放弃
Kalu丁
linux提权:从入门
日站就要日个彻底。往往我们能拿下服务器的web服务,却被更新地比西方记者还快的管理员把内网渗透的种子扼杀在提权的萌芽里面。Linux系统的提权过程不止涉及到了漏洞,也涉及了很多系统配置。一下是我总结的一些提权方法。几点前提已经拿到低权shell被入侵的机器上面有nc,python,perl等linux非常常见的工具有权限上传文件和下载文件内核漏洞提权提到脏牛,运维流下两行眼泪,我们留下两行鼻血。内
- android 下载txt,Android 下载文件(使用OKHttp)
weixin_39942492
android下载txt
finallongstartTime=System.currentTimeMillis();OkHttpClientokHttpClient=newOkHttpClient();Requestrequest=newRequest.Builder().url(url).addHeader("Connection","close").build();okHttpClient.newCall(reque
- 企业级-实现Nginx的静态文件服务器映射
嗝屁小孩纸
企业级造轮子java
作者:fyupeng技术专栏:☞https://github.com/fyupeng项目地址:☞https://github.com/fyupeng/distributed-blog-system-api留给读者开发人员往往会经常需要通过浏览器下载文件、图片或者PDF或者缩略图等,这时候我们可以根据自己的需求自定义设置,安全性就可以由自己来把握。一、介绍难点主要在于把文件路径当成参数传给后端,后端
- python flask创建服务器实现文件的上传下载
讷言丶
python前端flaskpython服务器
flask创建服务器实现和前端文件的上传下载,代码可以直接使用一、前端代码flask模块前端测试界面button,input{width:130px;height:30px;margin:30px;}下载文件上传文件-->开始上传functiondownload(){window.location.href='http://localhost:8080/download'}二、后端代码(pytho
- socket网络编程python_python学习-socket网络编程
张文岳
作业:多用户在线的FTP程序要求:用户加密认证允许同时多用户登录每个用户有自己的家目录,且只能访问自己的家目录对用户进行磁盘配额,每个用户的可用空间不同允许用户在ftpserver上随意切换目录允许用户查看当前目录下文件允许上传和下载文件,保证文件一致性文件传输过程中显示进度条附加功能:支持文件的断点续传(仅下载)README###功能实现作业:开发一个支持多用户在线的FTP程序要求:用户加密认证
- linux命令之服务器之间文件传输
abments
linux常用命令pythonpandas数据分析
目录前言一、scp命令1.简单用法:2.使用示例:2.1.复制文件到本地2.2.复制文件夹到本地二、sftp命令1.简单用法:2.使用示例2.1下载文件2.2上传文件总结前言在使用linux服务器时,有可能会需要在服务器之间传入文件,在这里记录了两种命令来进行实现。分别是scp命令和stpf命令。下面将详细介绍这两个命令的使用。一、scp命令scp:远程文件拷贝程序,是securecopyprog
- 【C-实践】文件服务器(1.0)
轩轶子
C语言实践c语言服务器tcp小程序
概述使用了tcp+epoll+进程池,实现文件下载服务器功能主要功能:客户端连接服务器,然后自动下载文件次要功能:客户端接收时显示进度条启动启动服务器1、在bin目录下生成可执行文件w@Ubuntu20:bin$gcc../src/*.c-oserver2、启动服务器w@Ubuntu20:bin$./server../conf/server.conf启动客户端1、在客户端的目录下生成可执行文件w@
- kingbase读取blob,下载文件注意事项
空~自由
大数据kingbaseblob
1,问题定位由于人大金仓存储的blob是16进制,且前后前后还包含了0字节。导致我们原先下载文件的方法有异常。2,解决方案在业务输出的时候,判断是否是人大金仓数据库,如果是人大金仓数据库,就进行转换,如果不是人大金仓就走原先的流程。DbUtils.java转换方法提取到公共包@ComponentpublicclassDbUtils{privatestaticfinalLoggerLOGGER=Lo
- git克隆远程项目到本地并修改提交到gitee仓库
澜雲
笔记gitgiteegithub
第一步创建一个新文件夹(自行命名)第二步在gitee仓库下载文件到创建的文件夹中第三步选择文件夹,右击选择gitbashhere第四步进行命令行管理//克隆仓库项目gitclone仓库地址//如gitclonehttps://gitee.com/hyxiaotouming/daily-practice-.git//如果文件不再当前目录下,则需要切换到文件坐在目录ls//查看子目录cd文件名//切换
- VUE根据url下载文件
lucky*girl
前端vue前端vue.jsjavascript
方法一:constdownloadRes=async()=>{letresponse=awaitfetch(url);letblob=awaitresponse.blob();letobjectUrl=window.URL.createObjectURL(blob);leta=document.createElement('a');a.href=objectUrl;a.download=res.s
- python+selenium爬虫自动化批量下载文件
@_简单就好
Python爬虫python爬虫selenium
一、项目需求在一个业务网站有可以一个个打开有相关内容的文本,需要逐个保存为TXT,数据量是以千为单位,人工操作会麻木到崩溃。二、解决方案目前的基础办法就是使用python+selenium自动化来代替人工去操作,虽然效率比其他爬虫低,但是也防止被封IP的风险。也能满足项目的需求。准备工作,先从网站下载项目清单xls文件,里面会有对应的唯一识别码,就是编号。三、写代码具体技术路线1.init一个初始
- CAJ转换成Word该怎么操作
三生石123三生石
日常工作中对CAJ文件解除相对较少,网上下载文件的时候就会有CAJ文件,但是为了方便安全,一般就会将其转换成我们熟悉的Word文档来使用,那么CAJ转换成Word该怎么操作呢?下面就这个介绍一下转换的方法。转换步骤如下:1、首先百度搜索软件关键词迅捷CAJ转换器,找到该软件下载并安装至电脑上。2、打开运行该软件,点击页面左侧的CAJ转Word功能。3、选择点击选择文件字样在弹出的窗口添加需要转换成
- vue 下载多个文件
cesium vue
vuevue下载多个文件
问题:window.location.href连续发起下载请求时,只能下载一次。解决://多次下载文件exportfunctiondownloadFile(url){constiframe=document.createElement("iframe");iframe.style.display="none";//防止影响页面iframe.style.height=0;//防止影响页面iframe
- 浏览器下载web服务器文件夹
dgiij
前端服务器后端chromeedge浏览器
默认情况下,通过浏览器下载文件只能存放在浏览器默认下载位置,好在谷歌的filesystemaccessapi可以在用户交互式同意的情况下,可以对用户选择的本地文件夹进行写入。这样可以将服务器上的文件夹整个下载到本地指定目录下。另外axios在1.7.0和之后的版本,正式内置了fetchadapter的支持,这对我等习惯用axios的开发者是更加方便了。为什么说axios支持fetchadapter
- 接口测试之文件下载
测试界晓晓
软件测试软件测试功能测试自动化测试程序人生职场和发展
在工作中对于下载接口,经常会有这样的疑问:这类接口一般功能比较稳定,但是又比较重要,需要占用回归测试时间,有没有可替代的方式?答案肯定是有的,可以从接口测试/UI自动化测试介入,而本文主要讲述接口测试,提供两种方法。文件下载接口的一般实现:A.一般项目中,文件存储/下载都是公司基础建设提供的能力,大部分实现都是获取到所下载文件的URL,然后浏览器会去执行下载操作(效果同在浏览器中直接输入该下载UR
- js 下载文件
一沭丶
网上的文章乱七八糟,还不支持IE8,这里整理了一下,支持IE浏览器,360浏览器,火狐,谷歌当然最简单的其实是后端用流文件的方式给出链接,前端点击a标签直接就下载了(以前chrome浏览器下是这么做的,其他浏览器没测过)//url为文件链接地址如:http://xx.xx.com/music.mp3//docx类型也支持,其他类型没有测过functiondownload(url){//是否支持do
- 下载文件(Go语言)
memories198
golang开发语言后端
在Go语言中,可以使用标准库中的net/http包来下载文件。以下是一个简单的示例代码,展示了如何从URL下载文件并保存到本地:packagemainimport("fmt""io""net/http""os")funcmain(){//要下载的文件URLurl:="https://example.com/file.zip"//本地保存路径filePath:="file.zip"//创建HTTPG
- Vue之前端批量下载文件并以压缩包形式存储
半糖不加奶
vue.js前端javascript
后端返回一个文件链接的数组,前端处理下载逻辑,并且将这些文件存储在压缩包内部,这用的jszip和file-saver这两个库。步骤说明1.使用npm或yarn安装jszip和file-saver。npminstalljszipfile-saver2.获取文件内容:使用fetchAPI获取每个文件的内容。3.生成压缩文件:使用jszip将获取到的文件内容添加到压缩包中。4.下载压缩文件:使用file
- java线程的无限循环和退出
3213213333332132
java
最近想写一个游戏,然后碰到有关线程的问题,网上查了好多资料都没满足。
突然想起了前段时间看的有关线程的视频,于是信手拈来写了一个线程的代码片段。
希望帮助刚学java线程的童鞋
package thread;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date
- tomcat 容器
BlueSkator
tomcatWebservlet
Tomcat的组成部分 1、server
A Server element represents the entire Catalina servlet container. (Singleton) 2、service
service包括多个connector以及一个engine,其职责为处理由connector获得的客户请求。
3、connector
一个connector
- php递归,静态变量,匿名函数使用
dcj3sjt126com
PHP递归函数匿名函数静态变量引用传参
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Current To-Do List</title>
</head>
<body>
- 属性颜色字体变化
周华华
JavaScript
function changSize(className){
var diva=byId("fot")
diva.className=className;
}
</script>
<style type="text/css">
.max{
background: #900;
color:#039;
- 将properties内容放置到map中
g21121
properties
代码比较简单:
private static Map<Object, Object> map;
private static Properties p;
static {
//读取properties文件
InputStream is = XXX.class.getClassLoader().getResourceAsStream("xxx.properti
- [简单]拼接字符串
53873039oycg
字符串
工作中遇到需要从Map里面取值拼接字符串的情况,自己写了个,不是很好,欢迎提出更优雅的写法,代码如下:
import java.util.HashMap;
import java.uti
- Struts2学习
云端月影
最近开始关注struts2的新特性,从这个版本开始,Struts开始使用convention-plugin代替codebehind-plugin来实现struts的零配置。
配置文件精简了,的确是简便了开发过程,但是,我们熟悉的配置突然disappear了,真是一下很不适应。跟着潮流走吧,看看该怎样来搞定convention-plugin。
使用Convention插件,你需要将其JAR文件放
- Java新手入门的30个基本概念二
aijuans
java新手java 入门
基本概念: 1.OOP中唯一关系的是对象的接口是什么,就像计算机的销售商她不管电源内部结构是怎样的,他只关系能否给你提供电就行了,也就是只要知道can or not而不是how and why.所有的程序是由一定的属性和行为对象组成的,不同的对象的访问通过函数调用来完成,对象间所有的交流都是通过方法调用,通过对封装对象数据,很大限度上提高复用率。 2.OOP中最重要的思想是类,类是模板是蓝图,
- jedis 简单使用
antlove
javarediscachecommandjedis
jedis.RedisOperationCollection.java
package jedis;
import org.apache.log4j.Logger;
import redis.clients.jedis.Jedis;
import java.util.List;
import java.util.Map;
import java.util.Set;
pub
- PL/SQL的函数和包体的基础
百合不是茶
PL/SQL编程函数包体显示包的具体数据包
由于明天举要上课,所以刚刚将代码敲了一遍PL/SQL的函数和包体的实现(单例模式过几天好好的总结下再发出来);以便明天能更好的学习PL/SQL的循环,今天太累了,所以早点睡觉,明天继续PL/SQL总有一天我会将你永远的记载在心里,,,
函数;
函数:PL/SQL中的函数相当于java中的方法;函数有返回值
定义函数的
--输入姓名找到该姓名的年薪
create or re
- Mockito(二)--实例篇
bijian1013
持续集成mockito单元测试
学习了基本知识后,就可以实战了,Mockito的实际使用还是比较麻烦的。因为在实际使用中,最常遇到的就是需要模拟第三方类库的行为。
比如现在有一个类FTPFileTransfer,实现了向FTP传输文件的功能。这个类中使用了a
- 精通Oracle10编程SQL(7)编写控制结构
bijian1013
oracle数据库plsql
/*
*编写控制结构
*/
--条件分支语句
--简单条件判断
DECLARE
v_sal NUMBER(6,2);
BEGIN
select sal into v_sal from emp
where lower(ename)=lower('&name');
if v_sal<2000 then
update emp set
- 【Log4j二】Log4j属性文件配置详解
bit1129
log4j
如下是一个log4j.properties的配置
log4j.rootCategory=INFO, stdout , R
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appe
- java集合排序笔记
白糖_
java
public class CollectionDemo implements Serializable,Comparable<CollectionDemo>{
private static final long serialVersionUID = -2958090810811192128L;
private int id;
private String nam
- java导致linux负载过高的定位方法
ronin47
定位java进程ID
可以使用top或ps -ef |grep java
![图片描述][1]
根据进程ID找到最消耗资源的java pid
比如第一步找到的进程ID为5431
执行
top -p 5431 -H
![图片描述][2]
打印java栈信息
$ jstack -l 5431 > 5431.log
在栈信息中定位具体问题
将消耗资源的Java PID转
- 给定能随机生成整数1到5的函数,写出能随机生成整数1到7的函数
bylijinnan
函数
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class RandNFromRand5 {
/**
题目:给定能随机生成整数1到5的函数,写出能随机生成整数1到7的函数。
解法1:
f(k) = (x0-1)*5^0+(x1-
- PL/SQL Developer保存布局
Kai_Ge
近日由于项目需要,数据库从DB2迁移到ORCAL,因此数据库连接客户端选择了PL/SQL Developer。由于软件运用不熟悉,造成了很多麻烦,最主要的就是进入后,左边列表有很多选项,自己删除了一些选项卡,布局很满意了,下次进入后又恢复了以前的布局,很是苦恼。在众多PL/SQL Developer使用技巧中找到如下这段:
&n
- [未来战士计划]超能查派[剧透,慎入]
comsci
计划
非常好看,超能查派,这部电影......为我们这些热爱人工智能的工程技术人员提供一些参考意见和思想........
虽然电影里面的人物形象不是非常的可爱....但是非常的贴近现实生活....
&nbs
- Google Map API V2
dai_lm
google map
以后如果要开发包含google map的程序就更麻烦咯
http://www.cnblogs.com/mengdd/archive/2013/01/01/2841390.html
找到篇不错的文章,大家可以参考一下
http://blog.sina.com.cn/s/blog_c2839d410101jahv.html
1. 创建Android工程
由于v2的key需要G
- java数据计算层的几种解决方法2
datamachine
javasql集算器
2、SQL
SQL/SP/JDBC在这里属于一类,这是老牌的数据计算层,性能和灵活性是它的优势。但随着新情况的不断出现,单纯用SQL已经难以满足需求,比如: JAVA开发规模的扩大,数据量的剧增,复杂计算问题的涌现。虽然SQL得高分的指标不多,但都是权重最高的。
成熟度:5星。最成熟的。
- Linux下Telnet的安装与运行
dcj3sjt126com
linuxtelnet
Linux下Telnet的安装与运行 linux默认是使用SSH服务的 而不安装telnet服务 如果要使用telnet 就必须先安装相应的软件包 即使安装了软件包 默认的设置telnet 服务也是不运行的 需要手工进行设置 如果是redhat9,则在第三张光盘中找到 telnet-server-0.17-25.i386.rpm
- PHP中钩子函数的实现与认识
dcj3sjt126com
PHP
假如有这么一段程序:
function fun(){
fun1();
fun2();
}
首先程序执行完fun1()之后执行fun2()然后fun()结束。
但是,假如我们想对函数做一些变化。比如说,fun是一个解析函数,我们希望后期可以提供丰富的解析函数,而究竟用哪个函数解析,我们希望在配置文件中配置。这个时候就可以发挥钩子的力量了。
我们可以在fu
- EOS中的WorkSpace密码修改
蕃薯耀
修改WorkSpace密码
EOS中BPS的WorkSpace密码修改
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
蕃薯耀 201
- SpringMVC4零配置--SpringSecurity相关配置【SpringSecurityConfig】
hanqunfeng
SpringSecurity
SpringSecurity的配置相对来说有些复杂,如果是完整的bean配置,则需要配置大量的bean,所以xml配置时使用了命名空间来简化配置,同样,spring为我们提供了一个抽象类WebSecurityConfigurerAdapter和一个注解@EnableWebMvcSecurity,达到同样减少bean配置的目的,如下:
applicationContex
- ie 9 kendo ui中ajax跨域的问题
jackyrong
AJAX跨域
这两天遇到个问题,kendo ui的datagrid,根据json去读取数据,然后前端通过kendo ui的datagrid去渲染,但很奇怪的是,在ie 10,ie 11,chrome,firefox等浏览器中,同样的程序,
浏览起来是没问题的,但把应用放到公网上的一台服务器,
却发现如下情况:
1) ie 9下,不能出现任何数据,但用IE 9浏览器浏览本机的应用,却没任何问题
- 不要让别人笑你不能成为程序员
lampcy
编程程序员
在经历六个月的编程集训之后,我刚刚完成了我的第一次一对一的编码评估。但是事情并没有如我所想的那般顺利。
说实话,我感觉我的脑细胞像被轰炸过一样。
手慢慢地离开键盘,心里很压抑。不禁默默祈祷:一切都会进展顺利的,对吧?至少有些地方我的回答应该是没有遗漏的,是不是?
难道我选择编程真的是一个巨大的错误吗——我真的永远也成不了程序员吗?
我需要一点点安慰。在自我怀疑,不安全感和脆弱等等像龙卷风一
- 马皇后的贤德
nannan408
马皇后不怕朱元璋的坏脾气,并敢理直气壮地吹耳边风。众所周知,朱元璋不喜欢女人干政,他认为“后妃虽母仪天下,然不可使干政事”,因为“宠之太过,则骄恣犯分,上下失序”,因此还特地命人纂述《女诫》,以示警诫。但马皇后是个例外。
有一次,马皇后问朱元璋道:“如今天下老百姓安居乐业了吗?”朱元璋不高兴地回答:“这不是你应该问的。”马皇后振振有词地回敬道:“陛下是天下之父,
- 选择某个属性值最大的那条记录(不仅仅包含指定属性,而是想要什么属性都可以)
Rainbow702
sqlgroup by最大值max最大的那条记录
好久好久不写SQL了,技能退化严重啊!!!
直入主题:
比如我有一张表,file_info,
它有两个属性(但实际不只,我这里只是作说明用):
file_code, file_version
同一个code可能对应多个version
现在,我想针对每一个code,取得它相关的记录中,version 值 最大的那条记录,
SQL如下:
select
*
- VBScript脚本语言
tntxia
VBScript
VBScript 是基于VB的脚本语言。主要用于Asp和Excel的编程。
VB家族语言简介
Visual Basic 6.0
源于BASIC语言。
由微软公司开发的包含协助开发环境的事
- java中枚举类型的使用
xiao1zhao2
javaenum枚举1.5新特性
枚举类型是j2se在1.5引入的新的类型,通过关键字enum来定义,常用来存储一些常量.
1.定义一个简单的枚举类型
public enum Sex {
MAN,
WOMAN
}
枚举类型本质是类,编译此段代码会生成.class文件.通过Sex.MAN来访问Sex中的成员,其返回值是Sex类型.
2.常用方法
静态的values()方