Bases de datos en PHP Flashcards

1
Q

Crear nuevo objeto a partir de clase A

A

$a = new A();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Acceder a atributo x de objeto a

A

$a->x;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Definir clase A con variables miembro x y funcion z

A
class A{
-> var $x;
-> var $y;
-> function z(){
-> }
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Llamar a funcion x con parametro y de clase Z con objeto z

A

$z->x($y);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Referirse a variable x de objeto actual no variable miembro de clase

A

$this->x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Constructor de clase X con argumentos y z valor por defecto n para inicializar

A

function X($y, $z=n){
-> $this->y = $y;
-> $this->z = $z;
}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Archivo my.cnf de MySQL secciones (2)

A

[client]

[mysqld]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

9
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

9
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

9
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

9
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

9
Q

Archivo my.cnf de MySQL parametros configurables (3)

A

port
user
datadir

9
Archivo my.cnf de MySQL parametros configurables (3)
port user datadir
9
Archivo my.cnf de MySQL parametros configurables (3)
port user datadir
9
Archivo my.cnf de MySQL parametros configurables (3)
port user datadir
9
Archivo my.cnf de MySQL parametros configurables (3)
port user datadir
9
Archivo my.cnf de MySQL parametros configurables (3)
port user datadir
10
Archivo my.cnf de MySQL parametros configurables (3)
port user datadir
10
Archivo my.cnf de MySQL parametros configurables (3)
port user datadir
10
Archivo my.cnf de MySQL parametros configurables (3)
port user datadir
10
Archivo my.cnf de MySQL parametros configurables (3)
port user datadir
10
Archivo my.cnf de MySQL parametros configurables (3)
port user datadir
11
Establecer conexion con base de datos x usuario y contraseña z, mediante PDO
$x = new PDO('mysql:host=localhost;dbname=x', 'y', 'z');
12
Obtener consulta x sql de base de datos y, y guardar en variable z, mediante PDOes
$z = $y->exec('x');
13
Deshabilitar modo autocommit en PDO para la base de datos x
$x->beginTransaction();
14
Confirmar transaccion actual en la base de datos x, mediante PDO
$x->commit();
15
Revertir cambios llevados a cabo por transaccion actual en base de datox x, mediante PDO
$x->rollback();
16
Generar y devolver a partir de cada registro, array con claves asociativas, a partir de consulta guardada en x, guardar en y, mediante PDO
$y = $x->fetch(PDO::FETCH_ASSOC);
17
Generar y devolver a partir de cada registro, array con claves asociativas y numericas, a partir de consulta guardada en x, guardar en y, mediante PDO
$y = $x->fetch(PDO::FETCH_BOTH); o $y = $x->fetch();
18
Generar y devolver a partir de cada registro, array con claves numericas, a partir de consulta guardada en x, guardar en y, mediante PDO
$y = $x->fetch(PDO::FETCH_NUM);
19
Generar y devolver a partir de cada registro, objeto cuyas propiedades corresponden a campos de registro, a partir de consulta guardada en x, guardar en y, mediante PDO
$y = $x->fetch(PDO::FETCH_OBJ);
20
Generar y devolver a partir de cada registro, array con clave dual y objeto cuyas propiedades corresponden a campos de registro, a partir de consulta guardada en x, guardar en y, mediante PDO
$y = $x->fetch(PDO::FETCH_LAZY);
21
Generar y devolver a partir de cada registro, true y asigna valores de registro a variables segun metodo bindColumn, a partir de consulta guardada en x, guardar en y, mediante PDO
$y = $x->fetch(PDO::FETCH_BOUND);