Sto cercando di interrogare una determinata riga per nome nel mio database sql e ha una e commerciale. Ho provato a impostare un carattere di escape e quindi a fuggire dalla e commerciale, ma per qualche motivo questo non funziona e non sono sicuro di quale sia esattamente il mio problema.
Set escape '\'
select * from V1144engine.T_nodes where node_id in(
select node2_id from V1144engine.T_edges where node1_id in(
select node2_id from V1144engine.T_edges where node1_id in(
select node2_id from V1144engine.T_edges where node1_id =
(select node_id from V1144engine.T_nodes where node_name = 'Geometric Vectors \& Matrices')))
and edge_type_id = 1)
and node_type_id = 1
and node_id in (
select node2_id from V1144engine.T_edges where node1_id =
(select node_id from V1144engine.T_nodes where node_name = 'Algebra II')
and edge_type_id = 2);
Sebbene questa abbia una soluzione simile a questa domanda , i problemi sono posti in modo molto diverso. Potrebbero finire per avere la stessa soluzione, ma ciò non significa che le domande siano le stesse.
set define offè il modo più semplice per farlo.