Record the troubleshooting process of SQL Server database subscription and publishing
Record the error reporting and solution process in the process of SQL server subscription and publishing
Report errors:
20598 error reporting20598 error reporting is mainly caused by the data inconsistency between the databases at both ends. The database generates an error reporting prompt when applying the stored procedure
The row was not f ...
Posted by mike_revolution on Tue, 12 Nov 2019 13:02:05 -0800
Data table column values converted to comma separated strings
In developing SQL Server word order, it may be necessary to convert all values of a column in the table to comma separated strings for presentation.
for instance:
IF OBJECT_ID('tempdb..#tempTable') IS NOT NULL
BEGIN
DROP TABLE #tempTable
END
CREATE TABLE #tempTable ([ID] INT NOT NULL,[Category] NVARCHAR(40) NULL)
INSERT INTO ...
Posted by dkruythoff on Tue, 12 Nov 2019 12:31:20 -0800
Mysql/Mariadb master-slave replication
concept
What is Mysql/Mariadb master-slave replication?
Mysql/Mariadb Master-slave replication: when the Master database changes, the changes will be synchronized to the slave database in real time;
Similar to: Samba shared file (C/S), NFS network file share (C/S), when the Server changes, the client data content will change accord ...
Posted by lalov1 on Tue, 12 Nov 2019 02:42:11 -0800
Some key analysis tools of MySQL
Catalog
pstack
gdb
strace
perf
pstack
Get stack informationProblem thread positioningLow load
mysql_pid=4522
pstack $mysql_pid>pstack.info
PT PMP sorting stack information
pt-pmp pstack.info | less
You can also directly execute Pt PMP
pt-pmp --pid 4522
as
10 __io_getevents_0_4(li ...
Posted by fatmart on Mon, 11 Nov 2019 15:09:47 -0800
Simple condition query, complex condition query and combined condition query using OrmLite in Android
Project requirements
There are four kinds of query conditions for a list, and not only online query but also offline query is needed. Online direct request interface helps us to do it. Offline must be realized by ourselves. There are many ways to realize it. I use ORM Lite here to realize it. ORM Lite provides many query met ...
Posted by richie on Sun, 10 Nov 2019 12:01:19 -0800
7-5 development after deleting commodity category and acquisition of currentShop
I. dao level
1. Develop dao interface
public interface ProductCategoryDao {
/**
* Delete specified product category
* @param productCategoryId
* @param shopId
* @return effectedNum
*/
int deleteProductCategory(@Param("productCategoryId") long productCategory,@Param("shopId") long shopId);
}
2. Develop mapper impleme ...
Posted by ralph4100 on Sat, 09 Nov 2019 10:28:35 -0800
New features of JDK 1.8 -- Collector interface and Collector tool class
Absrtact: This article mainly studied the Collector interface and Collector utility classes newly added in Java 1.8, and the improvement and optimization of using them in collection processing.
Some of the content comes from the following Blogs:
https://www.jianshu.com/p/7eaa0969b424
Streaming processing
The new streaming processing in JDK ...
Posted by MikeDXUNL on Sat, 09 Nov 2019 10:11:14 -0800
How to connect Aurora MySQL with Java
Author: halo cloud Ma Ligang
The following is a reference example of using MySQL connector to connect Aurora for mysql: Workbench accesses Aurora in the same way as mysql, such as: Aurora.example.rds.cn-northwest-1.amazonaws.com.cn User name: root Password: root
Eclipse development first adds dependency in maven, as follows:
<depen ...
Posted by Zup on Sat, 09 Nov 2019 08:41:23 -0800
The third bullet of MySQL statement -- single table query and multi table query
Part I multi table query
Complete syntax of single table query:
Select distinct field name
from 'table name'
where 'filter conditions before grouping'
group by 'field name'
having 'filter conditions after grouping'
order by 'default ascending sort ase|desc'
limit display number
Execution order of keywords:
**
1,from
2, ...
Posted by *mt on Sat, 09 Nov 2019 08:10:51 -0800
org.hibernate.QueryException: Unmatched braces for alias path
When inserting the insert SQL, the above error is exploded.
In fact, the reason is that the insert into statement is a SQL statement made of manually spelled strings.
When the saved field content has other special symbols or more complex content, such errors are easy to occur, which makes the program unable to parse the SQL statement.
Instea ...
Posted by shanewang on Sat, 09 Nov 2019 06:03:15 -0800