Advertisement
Guest User

Untitled

a guest
Dec 1st, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. -- Commento
  2. mysql -h contabile.fermi.intra -u s01518 -p
  3. show databases;
  4. use nomedb;
  5. show tables;
  6. select * from nometabella;
  7. select * from nometabella where campo='qualcosa'
  8. source file.sql;
  9. create table nome (Attributo tipo(grandezza));
  10. DESCRIBE nometabella;
  11. drop table nometabella1, nometabella2;
  12. INSERT INTO nometabella VALUES ('Apici per i char', 'Prova', 20);
  13.  
  14. CREATE TABLE nome
  15. (
  16. stringa varchar(10) default not null auto_increment primary key unique ,
  17. num int,
  18. data date,
  19. FOREIGN KEY (num) references squadra(nome),
  20. PRIMARY KEY (att, att2)
  21. );
  22.  
  23. INSERT INTO tab (stringa, num) VALUES
  24. ('we', 3),
  25. ('we', 4);
  26.  
  27. SELECT tab.att FROM tab1, tab2 WHERE tab.att='stringa' and (tab.att=0 or tab.att=1)
  28.  
  29.  
  30. messo nell'head
  31. <script type="text/javascript">
  32. var inp;
  33. var inp2;
  34. var msg = "";
  35.  
  36. function verificaForm()
  37. {
  38. inp = document.getElementById("nome").value;
  39. document.getElementById("nome").value = "We";
  40. var a = parseInt("10");
  41. if(inp == "")
  42. {
  43. msg = "Attenzione! Il campo nome non puo essere vuoto";
  44. //return false;
  45. }
  46. }
  47. function Fibonacci(n)
  48. {
  49. var n1 = 0;
  50. var n2 = 1;
  51. var n3;
  52. var i;
  53.  
  54. document.write(n1 + " " + n2);
  55.  
  56. for(i = 2; i < n; ++i)
  57. {
  58. n3 = n1 + n2;
  59. document.write(" " + n3);
  60. n1 = n2;
  61. n2 = n3;
  62. }
  63. }
  64. function Tabella()
  65. {
  66. var num;
  67. var riga;
  68. var colonna;
  69.  
  70. num = document.getElementById("val").value;
  71.  
  72. document.write("<table border=\"1\">");
  73.  
  74. for(riga = 0; riga < num; riga ++)
  75. {
  76. document.write("<tr>");
  77.  
  78. for (colonna = 0; colonna < num; colonna ++)
  79. document.write("<td>cella " + riga + ", " + colonna + "</td>");
  80.  
  81. document.write("</tr>");
  82. }
  83.  
  84. document.write("</table>");
  85. }
  86. </script>
  87.  
  88.  
  89. <form action="" onsubmit="return verificaForm();">
  90. <label for="telefono">Numero di telefono</label> <br>
  91. <input type="tel" id="telefono" name="telefonocompleto" placeholder="Inserisci il tuo numero telefonico" maxlength="15"> <br>
  92.  
  93. <label for="area">Richieste particolari</label> <br>
  94. <textarea id="area" name="areacompleta" rows="12" cols="60"></textarea> <br>
  95.  
  96. <input type="submit" value="Invia">
  97. <input type="reset" value="Reset">
  98. </form>
  99. <input type="button" onclick="ciao()" value="Cliccami"> <br>
  100. Checkbox: <input type="checkbox"> <br>
  101. Color picker:<input type="color"> <br>
  102. Data: <input type="date"> <br>
  103. <input type="datetime-local"> <br>
  104. Email:<input type="email"> <br>
  105. <input type="file"> <br>
  106. <input type="hidden"> <br>
  107. <input type="image"> <br>
  108. <input type="month"> <br>
  109. <input type="number"> <br>
  110. Password: <input type="password"> <br>
  111. <input type="radio"> <br>
  112. <input type="range"> <br>
  113. <input type="reset"> <br>
  114. <input type="search"> <br>
  115. <input type="submit"> <br>
  116. <input type="tel"> <br>
  117. <input type="text"> <br>
  118. <input type="time"> <br>
  119. <input type="url"> <br>
  120. <input type="week">
  121. <style>
  122. html
  123. {
  124. height: 100%;
  125. }
  126.  
  127. body
  128. {
  129. background: linear-gradient(to top, #66ffff 0%, #ccffcc 100%);
  130. background-repeat: no repeat;
  131. }
  132.  
  133. .centro
  134. {
  135. text-align: center;
  136. }
  137.  
  138. input[type=text], input[type=email], input[type=tel], select
  139. {
  140. width: 50%;
  141. padding: 12px 20px;
  142. margin: 8px 0;
  143. display: inline-block;
  144. border: 1px solid #ccc;
  145. border-radius: 4px;
  146. box-sizing: border-box;
  147. }
  148.  
  149. input[type=submit], input[type=reset]
  150. {
  151. background-color: #ccffcc;
  152. color: black;
  153. padding: 14px 20px;
  154. margin: 8px 0;
  155. border: none;
  156. border-radius: 4px;
  157. cursor: pointer;
  158. }
  159.  
  160. input[type=submit]:hover, input[type=reset]:hover
  161. {
  162. background-color: #33cc33;
  163. }
  164.  
  165. div
  166. {
  167. border-radius: 5px;
  168. padding: 20px;
  169. }
  170. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement