windows – The Explorer preview window can not select and copy text with the mouse

I can not select text in Windows 10 from the File Explorer preview window with a text file (it works on Windows 7).

Clicking and dragging with the left mouse button to select does not work, but I can left-click to place the insertion point, and then use Shift + Arrow keys and Ctrl + C to copy the text. Also a double click on a word marks the text. It just seems to be clicking + dragging and right-clicking on the shortcut menu that does not work.

I took a quick look around and could not find a similar question. Maybe it's just me? Just one of those little things, but it annoys me!

sql – Select rows that are not in multiple mysql columns

I have the following result set:

request_id | p_id
66 | 10
66 | 10
66 | 10
66 | 22
66 | 22
76 | 23
76 | 24

I try to select lines that excludes Records with specific combination values:

r_id | p_id
66 | 10
76 | 23

The output result set should therefore contain only the following records:

66 | 22
66 | 22
76 | 24

I tried to do:

Select * from the table
where request_id is NOT IN (66, 76) AND product_id is NOT IN (10, 22)

But that gives me empty results.

How do I exclude only the combination of these two values?

php PDO: Pass LAST_INSERT_ID from one INSERT method to another SELECT method

My intention is to perform the insertion of a record at one time and get the ID (AUTO_INCREMENT) of it to use as FK to insert multiple records using it into another table. First I want to make a selection to later create a third method with the second insertion, but I need to know how to pass that ID from one method to the other.

// **

public function insert () {
$ connection = new Connection ();
$ query = $ connection-> prepare (& # 39; INSERT INTO & # 39; self :: TABLE. & # 39; store_name) VALUES (: id_tipotienda,: tienda_nombre) & # 39 ;;);
$ query-> bindParam (& # 39 ;: store_name & # 39;, $ this-> store_name);
$ query-> execute ();
$ this-> id = $ connection-> lastInsertId ();


In the same class, I intend to use another method that collects the last inserted ID that results from this lastInsertId

// **

public function selecT () {
$ connection = new connection ();
$ query = $ connection-> prepare ("SELECT * FROM". self :: TABLE. "where store_id =: store_id");
$ query-> execute (array (& # 39 ;: id_store & # 39; => LAST_INSERT_ID));
$ register = $ query-> fetch ();
if ($ record) {
return new self ($ registration['tienda_nombre'], $ id_store);
} else {
return false;

Which then I will pick up with another call from another file.
I need to know how to pass this ID from one method to the other

Query Performance – SELECT optimization in Postgresql 10

I want to select the last unique lines based on the time.

    SELECT DISTINCT ON (title) *
FROM eco.tracks WHERE id> (SELECT id FROM eco.tracks WHERE time_track <((SELECT time_track FROM eco.tracks ORDER BY id DESC LIMIT 1) - INTERVAL & # 39; 300 seconds & # 39;) ORDER BY id DESC LIMIT 1 )
ORDER BY track, time_track DESC;

It gives me 20s, that's too slow.
If I replace ID with real value. it gives me 2ms

                    SELECT DISTINCT ON (title) *
FROM eco.tracks WHERE id> 48000000
ORDER BY track, time_track DESC;

This query

SELECT id FROM eco.tracks WHERE Time Track <((SELECT Time Track FROM eco.tracks ORDER BY id DESC LIMIT 1) - INTERVAL & # 39; 300 seconds & nds; ORDER BY id DESC LIMIT 1

only gives 2ms ..

What is wrong?!

Select the database type (RDBMS or JSON) for attribute storage

Which database should be selected for storage? Now I'm thinking about PostgreSQL or MongoDB.

You have to search for attributes.

for example
created (date and time)
last update (date / time)
lastCheck (date and time)
Status (logical) – active.

The first option
[objectId] | [name] | [value]
Problem in finding value type.

The second option
[objectId] | [name] | [type] | [valueString] | [valueInt] | [ValueDateTime]

The third option with MongoDB (Experience has shown that replacing the whole document is a problem, each attribute change overwrites the entire document)
[object] -> attributes.

Many ask:
Select lastCheck> = now

How do I select the number of a particular value without grouping it in postgresql?

I believe that this is the result of a UNION of two chosen ones. It has similar content:

ID foreign key
1 a
2 a
3 b
4 c

I want to add a column to the definition of the view, counting the values ​​without aggregating them. Something like that:

Count ID foreign key
1 a 2
2 a 2
3 b 1
4 c 1

My existing query is basically:

View x as Create or Replace
Select * from a
Select * b

I want to see the union's result, but I'm not sure how to do it.

EDIT – made some progress, with a normal table I can do this:

(select count (id) from mytable where = data)
FROM mytable as t

The problem comes into play because the table is really a union of two tables. Not sure how to do it without making the union twice?

Sort – Randomized Quick Selects – Time complexity dependency of k – the index to select

I analyzed the temporal complexity of random quick selection as a function of n – the size of the input and k – the index of the element that needs to be selected.
The time complexity dependence of n was expected to be linear, but the dependence of k was dependent on an inverted parabola – d. H. The time complexity was highest when trying to select the median and lowest when trying to select the first or last element of the array.

Is there an explanation for this?

join – What is the right way to select rows from both sides of a bridge table?

I want to do a SQL query for three columns. The database contains five tables, two of which are bridge tables for the other three. When I try to select from the tables, I get a very large number of lines that do not necessarily have related columns, which is a problem for me. My question is: How do I select linked columns from three tables whose rows are linked by a bridge table? For example: I have tables with students, classes, and teachers for these classes, which are linked by bridge tables. I would like to select the students, their classes and the teachers from these tables.

In fact, I have three tables: items. keywords, and Categories and two bridge tables to connect them: itemTagBridge and tagCategoryBridge, The idea is that the articles in the items The table can be assigned one or more tags stored in the table keywords Table and tags can be assigned to one or more categories that are listed in the Categories Table. The itemTagBridge The table contains columns for the element and the tag to which it belongs, as well as for the element tagCategoryBridge The table contains columns for the tag and the category to which it belongs. I want to select the items, tags, and categories assigned to those tags from the database. I use SQLite3. The program I am using to temporarily solve this problem is called SQLite Studio. The current status of the database structure looks like this:

item TEXT


Category TEXT



The data I test are the following:

1 "Hello world!"
2 "Goodbye world!"

1 "positivity"
2 "hello"
3 "negativity"
4 "goodbye"
5 "Hello World"
6 "goodByeWorld"

1 "Keyword"
2 "title"

1 1 1
2 1 2
3 1 5
4 2 3
5 2 4
6 2 6

1 1 1
2 2 1
3 3 1
4 4 1
5 5 2
6 6 2

Theoretically, I should be able to select the item, tag, and category columns from the items, tags, and categorys tables by linking the bridges to their respective tables as follows:

CHOOSE i. Point, t. Day, c. category
FROM elements as i, tags as t, categories as c
INTERNAL CONNECTION itemTagBridge AS ON = it.itemId - Connects the first page of the "it" bridge
INNER JOIN itemTagBridge ON = it.tagId - Join the 2nd page of the "it" bridge

INNER JOIN tagCategoryBridge AS tc ON = tc.tagId - Add the first page of the "tc" bridge
INNER JOIN tagCategoryBridge ON = tc.categoryId; - Connect the 2nd side of the "tc" bridge

My problem is that the above SQL selects 216 lines if it should pick much less. When SELECT DISTINCT is used, 6 lines are selected. When GROUP BY is used, at least 6 lines can also be selected. Another problem with the selection is that the selected lines do not match correctly (Hello is not a title, Hello is a keyword, HalloWelt is a title).

The 6 rows:

Article: Tag: Category:
Goodbye World goodByeWorld keyword
Goodbye World Goodbye Keyword
Goodbye World negativity keyword
Hello world hello world keyword
Hello world hello title
Hello World Positivity Title

I thought that I have a gross misunderstanding of joins, have no knowledge of a SQL operation that would be appropriate for this case, need to use a different schema, use a different database management system, or otherwise miss something completely with this problem.
My question is, how would I choose the article, the tag and the category from this database or if this is impossible, not optimal or impractical, which solution would be the better one.

Thank you for all your help, I am new to SQL and have been here for about a week, with no end in sight.

How can I select a child of this class in sass?

I'm trying to style a child tag in the Picture marked Class. So far, I've tried nothing to work with my limited Sass knowledge. I'm trying to style the H3.


Test six

Sed tristique purus vitae volutpat commodo suscipit amet sed nibh. Proin a ullamcorper sed blandite. Tristique purus vitae volutpat commodo suscipit ullamcorper sed blandit lorem ipsum dolore.

Sass snippet

/* Image */

.Image {
Limit: 0;
Position: relative;

&:In front {
Content: & # 39; & # 39 ;;
Height: 100%;
left: 0;
Position: absolutely;
above: 0;
Width: 100%;

& fit
Screen lock;

img {
Screen lock;
Width: 100%;

& .featured {
Screen lock;
margin: 0 0 2em 0;
background image: linear gradient (bottom right rgb (187, 171, 179), # 3b3639);
Upholstery: 50px;

a> h3 {
Font size: x-large;
Color white;

& .logo {
Screen lock;
Edge: 45px 0px .6em 0;

img {
Display: Inline;
maximum width: 100%;
Height: car;