Multi-Column Primary Key in MySQL 5

Quoted from the CREATE TABLE Syntax page: A PRIMARY KEY can be a multiple-column index. However, you cannot create a multiple-column index using the PRIMARY KEY key attribute in a column specification. Doing so only marks that single column as primary. You must use a separate PRIMARY KEY(index_col_name, …) clause. Something like this can be … Read more

What is difference between const and non const key?

int and const int are two distinct types. std::map<int, float> and std::map<const int, float> are, similarly, different types. The difference between std::map<const int, float> and std::map<int, float> is, to a degree, analogous to the difference between, say, std::map<int, float> and std::map<std::string, float>; you get a fresh map type for each. In the non-const case, the … Read more

How to send CTRL or ALT + any other key?

You can send the modifier key combination Ctrl+C like this: [void][System.Reflection.Assembly]::LoadWithPartialName(‘System.Windows.Forms’) [System.Windows.Forms.SendKeys]::SendWait(“^{c}”) From article Converting the Windows Script Host SendKeys Method The modifier keys are: Key | Code ———– SHIFT + CTRL ^ ALT % Other keys you might want: Key | Code ———– BACKSPACE {BACKSPACE}, {BS}, or {BKSP} BREAK {BREAK} CAPS LOCK {CAPSLOCK} DEL … Read more