网站首页 站内搜索

搜索结果

查询Tags标签: character,共有 215条记录
  • mysql 常用命令

    mysql 创建数据库,指定字符集 1. 创建数据库,指定字符集mysql> create database if not exists local default character set = utf8;Query OK, 1 row affected (0.00 sec)备注:通过default character set = 语句来指定DB的字符集 2.查看数据库字符集mysql> selec…

    2021/7/10 19:08:31 人评论 次浏览
  • [LeetCode] 1156. Swap For Longest Repeated Character Substring 单字符重复子串的最大长度

    Given a string text, we are allowed to swap two of the characters in the string. Find the length of the longest substring with repeated characters. Example 1: Input: text = "ababa" Output: 3 Explanation: We can swap the first b with the last…

    2021/7/9 23:36:10 人评论 次浏览
  • [LeetCode] 1156. Swap For Longest Repeated Character Substring 单字符重复子串的最大长度

    Given a string text, we are allowed to swap two of the characters in the string. Find the length of the longest substring with repeated characters. Example 1: Input: text = "ababa" Output: 3 Explanation: We can swap the first b with the last…

    2021/7/9 23:36:10 人评论 次浏览
  • 字符的方法:Character.isDigit()

    字符的方法 Character.isDigit() 此方法判断字符是否是数字 public class Demo07 {public static void main(String[] args) {String str="12345a";//字符串是否全是数字for (int i = 0; i < str.length(); i++) {if(!Character.isDigit(str.charAt(i))){//…

    2021/7/8 23:40:51 人评论 次浏览
  • PostgresQL语法比较

    PostgresQL语法比较CHARINDEX(,,@src)在postgresql里是POSITION(, in :src) ISNULL在postgresql里是COALESCElen在postgresql里是length STUFF(@arr1,1,CHARINDEX(@split,@arr1+@split)+@splitlen,)在postgresql里是replace($1,substring($1,1,POSITION(split in $1 || sp…

    2021/7/4 19:21:42 人评论 次浏览
  • 【Laravel3.0.0源码阅读分析】MySQL连接类

    <?php namespace Laravel\Database\Connectors; use PDO;class MySQL extends Connector {/*** Establish a PDO database connection.* 建立 PDO 数据库连接。* @param array $config* @return PDO*/public function connect($config){extract($config);$dsn = &qu…

    2021/7/3 19:24:53 人评论 次浏览
  • 443. String Compression

    Given an array of characters chars, compress it using the following algorithm: Begin with an empty string s. For each group of consecutive repeating characters in chars:If the groups length is 1, append the character to s. Otherwise, append the charac…

    2021/7/2 6:21:13 人评论 次浏览
  • mysql5.6安装

    操作系统:[root@]# cat /etc/redhat-releaseCentOS Linux release 7.9.2009 (Core)一、需要的包MySQL-client-5.6.32-1.linux_glibc2.5.x86_64.rpm MySQL-server-5.6.32-1.linux_glibc2.5.x86_64.rpmcd /opt/mysql5.6将包放到这个路径下二、yum安装1、查看:rpm -qa | g…

    2021/7/1 19:25:50 人评论 次浏览
  • 解决 perl Wide character in print

    1. 错误情景 git svn log 是使用perl编写的脚本,运行时会报错Wide character in print at /usr/share/perl5/Git/SVN/Log.pm line 225, <$fh> line 3521.2. 原因分析 原因不明 3. 解决方案 修改Linux 的语言为en_US.UTF-8,具体步骤如下 sudo locale-gen en_US.UTF…

    2021/6/30 22:50:34 人评论 次浏览
  • 一、mysql5.7 rpm 安装(单机)

    一、下载需要的rpm包mysql-community-client-5.7.26-1.el6.x86_64.rpmmysql-community-common-5.7.26-1.el6.x86_64.rpmmysql-community-libs-5.7.26-1.el6.x86_64.rpmmysql-community-server-5.7.26-1.el6.x86_64.rpm下载地址:http://ftp.ntu.edu.tw/MySQL/Downloads/MyS…

    2021/6/29 19:22:43 人评论 次浏览
  • MySQL 批量修改库、表、列的排序规则,处理数据库大小写不敏感问题。

    问题 数据库大小写不敏感 库名,表名敏感: 配置参数lower_case_table_names 可选值 【0,1】0不敏感,1敏感 数据敏感: 排序规则:*_bin: 表示的是binary case sensitive collation,也就是说是区分大小写。*_ci: case insensitive collation,不区分大小写 。 修改排序…

    2021/6/21 19:29:42 人评论 次浏览
  • Java常用类库Integer,Character,toCharArray

    Java常用类库 Object类Object类是所有Java的父类。 如果使用Object类作为类型去实例化一个子类,那么这个子类就是上传型对象,这个子类定义的自定义方法将无法通过上转型对象进行访问,上转型对象的特点就是会失去一些后定义的属性和方法。toString方法toString方法返回O…

    2021/6/19 14:26:54 人评论 次浏览
  • Mysql主从搭建

    # 1 主从同步的流程或原理1)master会将变动记录到二进制日志里面;2)master有一个I/O线程将二进制日志发送到slave;3) slave有一个I/O线程把master发送的二进制写入到relay日志里面;4)slave有一个SQL线程,按照relay日志处理slave的数据; # 2 # 3 修改配置文件 ####主…

    2021/6/16 2:23:15 人评论 次浏览
  • MySQL核心知识之DML数据操纵语言

    MySQL核心知识之DML数据操纵语言 MySQL核心知识之DML数据操纵语言MySQL深入剖析表数据新增创建表普通的插入表数据蠕虫复制(将一张表的数据复制到另一张表中)建表复制一次性插入多个数据 MySQL深入刨析表数据的修改以及删除修改(更新)删除注意事项mysql核心知识之中文…

    2021/6/13 19:23:17 人评论 次浏览
  • windows下Mysql插入中文incorrect string value

    问题出现的原因是数据库编码方式不对。 1、数据库修改 1) 在mysql命令行输入 show variables like %character%;查看数据库编码格式修改数据库编码格式:set names=utf8; 上一句命令相当于一下三行命令的合集: SET character_set_client =utf8; SET character_set_result…

    2021/5/30 2:30:51 人评论 次浏览
扫一扫关注最新编程教程