Skip to content

Commit 0637886

Browse files
Caracterisca del atributo identy
1 parent 00570f1 commit 0637886

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,21 @@ No son los únicos, existen otros que veremos mas adelante.
300300

301301
## Caracteristicas del atributo identy
302302

303+
_Para saber cuál es el valor de inicio del campo "identity"_
304+
305+
```sql
306+
select ident_seed('libros');
307+
```
308+
_Para permitir ingresar un valor en un campo de identidad activamos la opción_
309+
310+
```sql
311+
set identity_insert libros on;
312+
```
313+
314+
```sql
315+
set identity_insert libros off;
316+
```
317+
303318
| Comentarios | Link | Home | Code | Version | Estado |
304319
|----------------------------|:-----------:|:-----------:|:-----------:|:-----------:|:-----------:|
305320
| [Caracteristicas del atributo identy](https://github.com/BrianMarquez3/Learning-Microsoft-SQL-SERVER/tree/main/016%20Campo%20con%20atributo%20identy) | ✔️ | [⬅️Atras](#Tabla-de-contenidos) | yes | yes | ✔️ |

0 commit comments

Comments
 (0)