Summary of common HIVE functions

Summary of common HIVE functions There are many hive functions. In the past, it was always used and checked. Today, I will summarize the commonly used functions for easy reference in the future. This paper mainly involves the following aspects: 1. Hive function introduction and built-in function view See Hive official documents for more i ...

Posted by jamesm87 on Thu, 07 Oct 2021 00:35:22 -0700

19 basic exercises of mysql

###Title Practice sql Download: 1. Query the number of students selected for each course; 2. Find out the student numbers and names of all students who have taken only one course; 3. Query the number of boys and girls; 4. Check the list of students surnamed "Zhang"; 5. Query the list of students with the same name and surname, and cou ...

Posted by rochakchauhan on Wed, 06 Oct 2021 14:48:32 -0700

Hive query operation

query 1. Data preparation 1.1 create table // Create department table create table if not exists dept ( deptno int, dname string, loc int ) row format delimited fields terminated by '\t'; // Create employee table create table if not exists emp ( empno int, ename string, job string, mgr int, hiredate string, ...

Posted by sean.mccoy on Wed, 06 Oct 2021 06:41:53 -0700

02 - room reservation system database - user and room reservation data operation

02 - room reservation system database - user and room reservation data operation Project description With the increasing popularity of online room reservation, the continuous improvement of policies and regulations and the continuous improvement of technical level, online room reservation will become one of the main means of commercial tr ...

Posted by shinephp on Tue, 05 Oct 2021 15:50:49 -0700

MySql - three paradigms: permission, backup, standard design and

Authority management -- Create a new user create user sinanshao identified by '123456'; -- Change Password alter user 'sinanshao'@'%' identified by '111111'; -- Change user name rename sinanshao to sinanshao2; -- delete user drop user sinanshao; -- User authorization,Give the user all permissions -- all privileges All permissions except au ...

Posted by williamg on Tue, 05 Oct 2021 11:34:33 -0700

Linq and Lambda's GroupBy method

Group is often used in SQL. It is usually used to group one or more fields to find their sum, mean, etc. The Groupby method in Linq also has this function. See the code for specific implementation: Suppose there is a data set as follows: public class StudentScore { public int ID { set; get; } public string Name { set; get; } public string Co ...

Posted by mlschutz on Sun, 03 Oct 2021 17:31:13 -0700

Database Note 02 SQL Statement + MySQL Constraint

Database Note 02 SQL Statement (bottom) +MySQL Constraint 1. Detailed syntax of query statements in SQL: Query all data in the table: select * from surface -- It's actually recommended that you write out all the field names Query individual fields: select Field name 1,Field Name 2 from surface Conditional Query: select field from ...

Posted by MysticalCodex on Thu, 30 Sep 2021 09:21:00 -0700

[netding Cup 2018]Fakebook - SSRF / deserialization vulnerability / SQL injection

Solution I Solution II Solution III Test site • directory scanning • SSRF • SQL injection • PHP deserialization When we get the website, we first need to collect information about the website to expand the probability of vulnerability discovery, such as whois, fingerprint identification, scanning the directory of ...

Posted by IndianaRogers on Wed, 29 Sep 2021 15:46:51 -0700

@Analysis and reason of Param annotation

Function: when annotations are used to simplify XML configuration (such as the introduction of sql parameters in Mapper.xml of Mybatis), the @ Param annotation is used to name the parameters. After the parameters are named, the parameter values can be obtained according to the name, and the parameters can be correctly passed into sql statements ...

Posted by ravegti on Wed, 29 Sep 2021 14:46:32 -0700

SQL server stored procedure learning record

https://www.cnblogs.com/c-supreme/p/9482321.html In short, a stored procedure is a collection of one or more sql statements, which can be regarded as a batch file, but its function is not limited to batch processing. 1, Overview of stored procedures Stored procedures in SQL server use t_ Code snippet written in SQL. Its purpose is to easily ...

Posted by twsowerby on Tue, 28 Sep 2021 04:03:54 -0700