电脑内存的安装步骤

电脑内存的安装步骤

装机DIY 2021-04-14 PM 1717℃ 0条
电脑主板开关按钮电源线识别安装

电脑主板开关按钮电源线识别安装

装机DIY 2021-04-14 PM 3015℃ 0条
主板开机按钮电源线安装

主板开机按钮电源线安装

装机DIY 2021-04-14 PM 1756℃ 0条
SQL TRIM 函数(SQL Server、MySQL、Oracle) - 移除字符串两边空格

SQL TRIM 函数(SQL Server、MySQL、Oracle) - 移除字符串两边空格

SQL TRIM 函数(SQL Server、MySQL、Oracle) - 移除字符串两边空格TRIM 函数是用来移除掉一个字串中的字头或字尾。最常见的用途是移除字首或字尾的空白。这个函数在不同的数据库中的定义:MySQL:TRIM( )、RTRIM( )、LTRIM( )Oracle:RTRIM( )、LTRIM( )SQL Server:RTRIM( )、LTRIM( )语法:TRIM ( [ [位置] [要移除的字串] FROM ] 字串)[位置] 的可能值为 LEADING (起头), TRAILING (结尾), or BOTH (起头及结尾)。这个函数将把 [要移除的字串]...

数据库 2021-04-08 PM 1985℃ 0条
10种数据库获取当前时间/服务器时间

10种数据库获取当前时间/服务器时间

10种数据库获取当前时间/服务器时间(Oracle、Infomix、DB2、SQL Server、Access 、Sybase、MySQL、FoxPro、Sqlite、postgreSQL)1、Oracle数据库:select sysdate from Table1; 2、Infomix数据库:select current from sysmaster:sysshmvals;3、DB2数据库:select current timestamp from sysibm.sysdummy14、SQL Server数据库:select getdate();5、Access 数据库:select...

数据库 2021-04-08 PM 1953℃ 0条
mysql 查询当天所有重复数据

mysql 查询当天所有重复数据

select * from info where to_days(time) = to_days(now()) and tel in (select tel from info group by tel having count(tel) > 1);info 数据库表名tel 为手机号方法2:mysql 查询当天所有重复数据select * from info where to_days(time) = to_days(now()) and id not in ( select t.id from (select max(id) as id from info g...

数据库 2021-04-05 PM 2943℃ 0条
js 激活 input 编辑框和全选内容

js 激活 input 编辑框和全选内容

<input name="jbxue_form" id="jbxue_form" value="内容" /> <script> //JS选中文本框中内容 document.getElementById("jbxue_form").focus(); document.getElementById("jbxue_form").select(); //jquery选中文本框中内容 $("#jbxue_form").focus(); $("#j...

前端 2021-03-30 PM 1847℃ 0条
php post 提交

php post 提交

<?php function request_post($url = '', $post_data = array()) { if (empty($url) || empty($post_data)) { return false; } $o = ""; foreach ( $post_data as $k => $v ){ $o.= "$k=" . urlencode( $v ). "&" ; } $post_data = s...

PHP 2021-03-22 PM 1786℃ 0条
C/C++获取精确到微秒级的系统时间

C/C++获取精确到微秒级的系统时间

C/C++获取精确到微秒级的系统时间最近要为自己的项目开发一个日志模块,需要获取精确到微秒级的系统时间,查阅了一些资料,发现在C/C++里面可以通过 gettimeofday(struct timeval tv,struct timezone tz) 和 localtime(const time_t * timep) 这两个函数的配合使用来得到我想要的结果。先贴一下这两个函数的说明gettimeofday头文件:#include <sys/time.h> #include <unistd.h>函数定义:int gettimeofday (struct time...

C/C++ 2021-03-20 AM 1940℃ 0条
go语言中使用smtp发送邮件及smtp协议的相关问题

go语言中使用smtp发送邮件及smtp协议的相关问题

go语言中使用smtp发送邮件及smtp协议的相关问题go 的标准库中有一个 smtp 包提供了一个可以非常方便的使用 smtp 协议发送邮件的函数,通常情况下使用起来简单方便,不过我在使用中却意外遇到了一个会导致邮件发送出错的情况。smtp 协议发送邮件sendmail 函数go 标准库的 net/smtp 包提供了一个 SendMail 函数用于发送邮件。func SendMail(addr string, a Auth, from string, to []string, msg []byte) errorSendMail: 连接到 addr 指定的服务器;如果支持会开启 TLS;...

Goland 2021-03-20 AM 1901℃ 0条
减小 golang 编译出程序的体积

减小 golang 编译出程序的体积

减小 golang 编译出程序的体积Go 语言的优势是可以很方便地编译出跨平台的应用程序,而不需要为每一个平台做代码适配,也不像 JAVA 一样需要预先安装 JDK 环境。相应的问题就是 go 编译出的程序体积较大,和 c/c++ 不同,它将大多数依赖都以静态编译的方式编译进了程序中。-ldflagsgo build 编译程序时可以通过 -ldflags 来指定编译参数。-s 的作用是去掉符号信息。 -w 的作用是去掉调试信息。测试加与不加 -ldflags 编译出的应用大小。go build -o tmp/frpc ./cmd/frpc-rwxr-xr-x 1 fate staff...

Goland 2021-03-20 AM 2717℃ 0条