Update em pl/sql

Ĉ¿
SQL> UPDATE tabela o set o.campo = '9' where o.ordem='676' and o.empresa='7';

"pressione enter para executar"

1 row updated

SQL> commit;

"pressione enter para salvar o registro"

Commit complete

PLSQL Delete

Ĉ¿
PLSQL Basic Excluir
- DELETE Basic
DELETE FROM TableName []
WHERE [] Condição;

PLSQL Selecione Excluir
- Selecione Excluir
DELETE
FROM (SELECT *
FROM EMPREGADOS
WHERE Dept_ID = 1,003);

PLSQL Delete com Retornando
- Excluir com retorno
DELETE
FROM TempEmployee
WHERE EMPL_ID = 1
RETURNING rowid INTO ReturnVal;

PLSQL Excluir partição
- Excluir partição
DELETE FROM [TableName]
PARTITION [PartitionName];
Ex:
DELETE FROM PAYROLL
PARTITION (TaxYear2001);

PLSQL Excluir Database
- Excluir do banco de dados
DELETE
FROM [TableName] @
Ex:
DELETE
FROM TempEmployee @ HR_db;

PHP Oracle Select, Insert, Update e DELETE

Ĉ¿
$c=OCILogon("scott", "tiger", "orcl");
if ( ! $c ) {
echo "Unable to connect: " . var_dump( OCIError() );
die();
}

// Drop old table...
$s = OCIParse($c, "drop table tab1");
OCIExecute($s, OCI_DEFAULT);

// Create new table...
$s = OCIParse($c, "create table tab1 (col1 number, col2 varchar2(30))");
OCIExecute($s, OCI_DEFAULT);

// Insert data into table...
$s = OCIParse($c, "insert into tab1 values (1, 'Frank')");
OCIExecute($s, OCI_DEFAULT);

// Insert data using bind variables...
$var1 = 2;
$var2 = "Scott";
$s = OCIParse($c, "insert into tab1 values (:bind1, :bind2)");
OCIBindByName($s, ":bind1", $var1);
OCIBindByName($s, ":bind2", $var2);
OCIExecute($s, OCI_DEFAULT);

// Select Data...
$s = OCIParse($c, "select * from tab1");
OCIExecute($s, OCI_DEFAULT);
while (OCIFetch($s)) {
echo "COL1=" . ociresult($s, "COL1") .
", COL2=" . ociresult($s, "COL2") . "n";
}

// Commit to save changes...
OCICommit($c);

// Logoff from Oracle...
OCILogoff($c);
?>

Comandos git do dia a dia

Ĉ¿ #Criando um projeto do zero echo "# UBBOAT_App" >> README.md git init git add README.md git commit -m "first commi...