1. IndexAdd an index, design the interface, right-click on any column--index/key--tap to add an index2. ViewThe view is the virtual table we've queried.Creating views: Create View nameAsSQL query statements, grouping, sorting, in and so on can not be writtenView Usage: SELECT * from view name3.SQL programming(1) define variable: DECLARE @ variable name data typeExample: declare @a int(2) variable assignment: SET @ variable name = valueExample: Set @a=10Set @a = 10--Assignment, not printingSelect
'--multi-conditional and relationalSELECT * from Info where sex= ' true ' or nation= ' n001 '--multi-condition or relationship3. Scope QuerySELECT * from Car where price>40 and priceSELECT * from Car where price between and 504. Discrete querySELECT * from Car where Code in (' c001 ', ' c005 ', ' c010 ', ' c015 ')SELECT * from Car where Code not in (' c001 ', ' c005 ', ' c010 ', ' c015 ')5. Fuzzy querySELECT * from Car where Name like '% BMW% '--chec
*from table name where column name like '% value %' % wildcard character % only in front of the value indicates that you want to query for a condition that begins with a value, followed by a condition that ends with a value, and before and after the query contains a value. --Sort Query SELECT * from table name order by column name ASC Ascending order Select *from Table name order by column name desc Descending Order when you sort a particular condition, you only need to insert the quer
owned by someone.
according to the requirements of the paradigm, two tables should be designed, respectively, to represent the information of people and cars. Step 1: Draw the E-r diagram///Step 2: Build the Entity table separately and add the foreign KEY constraint to the table of the Multiparty CREATE table Person2 ( id VARCHAR (+) PRIMARY key, pname VA
Rchar (+), sex CHAR (1)); CREATE TABLE car ( id varchar (PRIMARY) KEY, cname varchar (+), price NUMERIC (10,2
), pid VARCHAR (+), const
Package com.lz.factory.simpleFactory;/** * Supplement: Object-oriented Principles * OCP: (open and closed principle) adding new features should not modify the original code, but instead add a new class * DIP: (Dependency Reversal Principle) dependency programming * LOD: (Dimitri Law) reduces coupling, communicates only with necessary objects * Static Factory class {* Creator and Separation of callers * Simple factory problem: Adding a new feature requires a code change *} * Factory method class
of the class, embodied. For example: In the life of the car, can be regarded as a class, we call the car class, each car has color and number of tires (can be defined as attributes, i.e. member variables), each car can run (that is, the car's behavior, corresponding to the total member function), we have the car instantiation, will produce an object, such as Mercedes, BMW.Demo1:public class Car {private String color; Define car colors, global variablesprivate int Numluntai; Define the number of
, storage, and calculation, and analysis, On the basis of precise geographical positioning, the company provides the new business opportunities for the cross-border operation of automobile service providers. Currently, IBM is working closely with the world's leading vehicle manufacturers to implement the technology for mobile applications in many future vehicles, including autonomous driving. IBM also cooperates with OEMs such as BMW, Mercedes-Benz, F
responsibility is mainly constrained class, followed by the interface and method, it is the implementation and details of the program, and the interface isolation principle mainly constrains the interface, mainly for the abstract, for the construction of the overall framework of the program.
Dependency inversion principle. (DIP)The Dependency inversion PrincipleThought: High-level modules should not rely on low-layer modules, both should be dependent on abstraction. 1. High-level modules sho
new model, the first thing are to choose a concept or archetype. It ' s primarily an architectural positioning mechanism. The BMW X6 is an example of a new concept that combines the properties of an SUV and a coupe into what BMW calls a sports Activity coupe. Before you can purchase a new X6, BMW have invested thousands of hours and millions of dollars in both i
Spring defines and assembles beans
I discussed IOC and AOP in Spring in my previous blog. This article uses code to demonstrate how Spring implements IOC. This blog will introduce how to define and load Java Beans in Spring.Business scenarios
This is also an example of driving a car. First, define a Car interface and two Benz and BMW implementations, and then define a Person class. The Person class depends on the Car interface.
public interface Car {
Case Analysis:
Each car has engine, tires, and other components, but the components used by different brands of cars should be different. The automobile production plants can have different production lines, each production line is responsible for producing a certain type of automotive parts. For example, a factory has two production lines, one producing parts of BMW and the other producing parts of baolai. If you want to buy a car, start the correspo
() Invert list3.join (‘-‘) to stitch the array into a string List3.concat ([' ABC ']) array and array stitching list3.sort () sortObject type (equivalent to a Python dictionary)var dict = {name: ' CSF ', Age:18,sex: ' Male ' }; var age = dict.age; var name = dict[' name ']; Delete dict[' name '] deletes deleted dict.age DeleteTimer// parameter 1 is the function performed by the timer, and the second parameter is the time interval of the timer to work in milliseconds function T1 () { consol
MySQL Tutorial SQL distinct delete duplicate records
How to use the DISTINCT keyword in MySQL to filter duplicate values in the result list of a SELECT statement
If you want to delete duplicate data while querying the data, you can use the DISTINCT keyword to filter the duplicate values, and then look at the distinct usage below.
SELECT DISTINCT column_name from table_name;
Let's take a look at a simple example where we have a list of cars. Each car has an ID, brand, type and color,
about the contestants: node. js, the server-side JavaScript language, with excellent event-driven and I/O asynchrony, is more like a Mitsubishi evlution Xwith excellent performance; PHP, a familiar service-side language, has a fairly high market share in the Internet, and is more like a BMW 330iwith outstanding performance and high brand awareness. Driver and Tester Introduction: Network Environment: Intranet Driver (Stress test server): Server Syste
LINQ enables querying of generic objects or objects that implement the
IEnumerable interface. However, non-generic collections such as ArrayList do not implement the IEnumerable
interface. Next, let's take a look at how to use LINQ to query Non-generic collections in this case.
C#
1public class Cars 2{ 3public string CarMake { get;set;} 4public string CarModel { get; set; } 5public int Year { get; set; } 6} 7 8 9class Program 10{ 11static void Main(string[] args) 12{ 13 ArrayList ca
(Don) Zhang Hu
thousand doors unlock million lights Ming, the middle of the month move to Beijing.
300 of my wife's sleeve dance, the sound of words in the sky.
Poem Yue
(Tang) Li Shangyin
Moonlight Lamp Mountain full of imperial, fragrant car bao cover ai thoroughfare.
Do not see the prosperity of the body, ashamed to race purple gu.
Poem Yue
(song) Kang Baishi
Lantern Festival to see Lotus Boat, BMW fragrant car pendant dian;
Wind and rain night
11, HTML element event attributes, such as onclick= "", double quotation marks can be a method bar, can be JS code (no add Call StartTime () in onload18. JavaScript Array (Array) object:There are three ways to create an array.1: Conventional way:var mycars=new Array ();Mycars[0]= "Saab";Mycars[1]= "Volvo";Mycars[2]= "BMW";2: Simple way:var mycars=new Array ("Saab", "Volvo", "BMW");3: literally:var mycars=["
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.