九九乘法表、java、MySQL 编程题

JavaScript 编写九九乘法表


<html >
 <head>
    <meta charset="UTF-8">
    <title>20171031title>
 head>
 <body>
<script>
for( var a = 1; a < 10; a++ )
{
    for( var b = 1; b <= a; b++ )
    {
        document.write( b + "*" + a + "=" + a*b+"\t" );
        document.write( " " );
    }
    document.write( "
"
); }
script> body> html>

Java 编程题

package demo;

public class Java3 {
    public static void main(String[] args) {
        TestTN tt=new TestTN();
        tt.print();
    }

    }
     class TestTN{

     public void print(){
        for(int j=1;j<=4;j++){
            for(int i=1;i<=4;i++){
            if(i!=j){
            for(int k=1;k<=4;k++){
                if(k!=j&&k!=i){
                System.out.print(j);
                System.out.print(i);
                System.out.print(k);
                System.out.print(" ");
                                  }

    }
    }else 
        continue;
        }
    }

}
}

MySQL 编程题

/*
Navicat MySQL Data Transfer

Source Server         : java96
Source Server Version : 50556
Source Host           : localhost:3306
Source Database       : 10.30

Target Server Type    : MYSQL
Target Server Version : 50556
File Encoding         : 65001

Date: 2017-10-31 09:30:04
*/

SET FOREIGN_KEY_CHECKS=0;

-- ----------------------------
-- Table structure for 10.30
-- ----------------------------
DROP TABLE IF EXISTS `10.30`;
CREATE TABLE `10.30` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `Name` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Tel` bigint(122) NOT NULL,
  ` Content` varchar(255) CHARACTER SET utf8 NOT NULL,
  `Date` date NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Records of 10.30
-- ----------------------------
INSERT INTO `10.30` VALUES ('1', '张三', '13333663366', '大专毕业', '2006-10-11');
INSERT INTO `10.30` VALUES ('2', '张四', '13612312331', '本科毕业', '2006-10-15');
INSERT INTO `10.30` VALUES ('3', '小明', '13905333221', '中专毕业', '2006-10-15');



--  有一新记录新增至表中
INSERT INTO `10.30` VALUES ('4','小王',' 13254748547','高中毕业','2006-05-06')




--  请写出删除姓名为张四的全部记录。
DELETE FROM `10.30` WHERE id=2




--  把张三的时间更新为当前系统时间
UPDATE `10.30` SET NAME='张三',DATE=NOW() WHERE id=1

你可能感兴趣的:(作业专区)